From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8372D45DD0; Fri, 29 Nov 2024 21:20:37 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 114C04027D; Fri, 29 Nov 2024 21:20:37 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 3315240150; Fri, 29 Nov 2024 21:20:36 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B344811FB; Fri, 29 Nov 2024 12:21:04 -0800 (PST) Received: from ampere-altra-2-1.usa.arm.com (ampere-altra-2-1.usa.arm.com [10.118.91.158]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0D60D3F66E; Fri, 29 Nov 2024 12:20:35 -0800 (PST) From: Wathsala Vithanage To: Kai Ji , Wathsala Vithanage , Jack Bond-Preston Cc: dev@dpdk.org, nd@arm.com, honnappa.nagarahalli@arm.com, hemant.agrawal@nxp.com, stable@dpdk.org Subject: [PATCH] crypto/openssl: fix CMAC auth context update Date: Fri, 29 Nov 2024 20:20:22 +0000 Message-ID: <20241129202023.1203341-1-wathsala.vithanage@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patch removes an unnecessary cleanup of the shared CMAC context at the end of the CMAC authentication function, which causes subsequent calls to it to fail. Fixes: 17d5bc6135af ("crypto/openssl: make per-QP auth context clones") Cc: stable@dpdk.org Signed-off-by: Wathsala Vithanage Reviewed-by: Jack Bond-Preston --- drivers/crypto/openssl/rte_openssl_pmd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/crypto/openssl/rte_openssl_pmd.c b/drivers/crypto/openssl/rte_openssl_pmd.c index d2cf20c059..b090611bd0 100644 --- a/drivers/crypto/openssl/rte_openssl_pmd.c +++ b/drivers/crypto/openssl/rte_openssl_pmd.c @@ -1595,9 +1595,6 @@ process_openssl_auth_cmac(struct rte_mbuf *mbuf_src, uint8_t *dst, int offset, process_auth_final: if (CMAC_Final(ctx, dst, (size_t *)&dstlen) != 1) goto process_auth_err; - - CMAC_CTX_cleanup(ctx); - return 0; process_auth_err: -- 2.43.0