[EXT] [PATCH 2/4] cryptodev: add SM3 hash algorithm

Anoob Joseph anoobj at marvell.com
Wed Aug 17 12:35:01 CEST 2022


Hi Arek,

Please see inline.

Thanks,
Anoob

> 
> External Email
> 
> ----------------------------------------------------------------------
> SM3 is a cryptographic hash function used in the Chinese National Standard.
> 
> - Added SM3 algorithm
> 
> Signed-off-by: Arek Kusztal <arkadiuszx.kusztal at intel.com>
> ---

[snip]

> a/lib/cryptodev/rte_cryptodev.c b/lib/cryptodev/rte_cryptodev.c index
> 266804f0fe..2b6c7de930 100644
> --- a/lib/cryptodev/rte_cryptodev.c
> +++ b/lib/cryptodev/rte_cryptodev.c
> @@ -135,7 +135,8 @@ rte_crypto_auth_algorithm_strings[] = {
> 
>  	[RTE_CRYPTO_AUTH_KASUMI_F9]	= "kasumi-f9",
>  	[RTE_CRYPTO_AUTH_SNOW3G_UIA2]	= "snow3g-uia2",
> -	[RTE_CRYPTO_AUTH_ZUC_EIA3]	= "zuc-eia3"
> +	[RTE_CRYPTO_AUTH_ZUC_EIA3]	= "zuc-eia3",
> +	[RTE_CRYPTO_AUTH_SM3]		= "zuc-sm3"

[Anoob] Should the string be "sm3" instead of "zuc-sm3"?


More information about the dev mailing list