[PATCH 4/5] crypto/openssl: per-qp auth context clones

Jack Bond-Preston jack.bond-preston at foss.arm.com
Mon Jun 3 18:30:25 CEST 2024


On 03/06/2024 17:01, Jack Bond-Preston wrote:
> diff --git a/drivers/crypto/openssl/openssl_pmd_private.h b/drivers/crypto/openssl/openssl_pmd_private.h
> index bad7dcf2f5..c3740ccc62 100644
> --- a/drivers/crypto/openssl/openssl_pmd_private.h
> +++ b/drivers/crypto/openssl/openssl_pmd_private.h
> @@ -80,6 +80,20 @@ struct __rte_cache_aligned openssl_qp {
>   	 */
>   };
>   
> +struct evp_ctx_pair {
> +	EVP_CIPHER_CTX *cipher;
> +	union {
> +		EVP_MD_CTX *auth;
> +#if OPENSSL_VERSION_NUMBER >= 0x30000000L
> +		EVP_MAC_CTX *hmac;
> +		EVP_MAC_CTX *cmac;
> +#else
> +		HMAC_CTX hmac;
> +		CMAC_CTX cmac;
> +#endif
> +	};
> +};
> +

HMAC_CTX and CMAC_CTX should be pointers, this is causing CI failures 
for older OpenSSL versions.


More information about the dev mailing list