crypto/openssl: fix CMAC auth context update
Checks
Commit Message
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 <wathsala.vithanage@arm.com>
Reviewed-by: Jack Bond-Preston <jack.bond-preston@foss.arm.com>
---
drivers/crypto/openssl/rte_openssl_pmd.c | 3 ---
1 file changed, 3 deletions(-)
--
2.43.0
Comments
> 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 <wathsala.vithanage@arm.com>
> Reviewed-by: Jack Bond-Preston <jack.bond-preston@foss.arm.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
> > 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 <wathsala.vithanage@arm.com>
> > Reviewed-by: Jack Bond-Preston <jack.bond-preston@foss.arm.com>
>
> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Applied to dpdk-next-crypto
Thanks.
@@ -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: