On 15/09/2022 09:26, Volodymyr Fialko wrote:
SHA3 family algorithms were missing in the array of algorithm strings.

Fixes: 1df800f89518 ("crypto/ccp: support SHA3 family")

Signed-off-by: Volodymyr Fialko <vfia...@marvell.com>
---
  lib/cryptodev/rte_cryptodev.c | 9 +++++++++
  1 file changed, 9 insertions(+)

diff --git a/lib/cryptodev/rte_cryptodev.c b/lib/cryptodev/rte_cryptodev.c
index 42f3221052..35661f5347 100644
--- a/lib/cryptodev/rte_cryptodev.c
+++ b/lib/cryptodev/rte_cryptodev.c
@@ -130,6 +130,15 @@ rte_crypto_auth_algorithm_strings[] = {
        [RTE_CRYPTO_AUTH_SHA512]        = "sha2-512",
        [RTE_CRYPTO_AUTH_SHA512_HMAC]   = "sha2-512-hmac",
+ [RTE_CRYPTO_AUTH_SHA3_224] = "sha3-224",
+       [RTE_CRYPTO_AUTH_SHA3_224_HMAC] = "sha3-224-hmac",
+       [RTE_CRYPTO_AUTH_SHA3_256]      = "sha3-256",
+       [RTE_CRYPTO_AUTH_SHA3_256_HMAC] = "sha3-256-hmac",
+       [RTE_CRYPTO_AUTH_SHA3_384]      = "sha3-384",
+       [RTE_CRYPTO_AUTH_SHA3_384_HMAC] = "sha3-384-hmac",
+       [RTE_CRYPTO_AUTH_SHA3_512]      = "sha3-512",
+       [RTE_CRYPTO_AUTH_SHA3_512_HMAC] = "sha3-512-hmac",
+
        [RTE_CRYPTO_AUTH_KASUMI_F9]     = "kasumi-f9",
        [RTE_CRYPTO_AUTH_SNOW3G_UIA2]   = "snow3g-uia2",
        [RTE_CRYPTO_AUTH_ZUC_EIA3]      = "zuc-eia3"

This is being flagged as an ABI break for 21.11.3 [1]. I don't see it mentioned in the commit message or discussed, is it ok for main branch?

Thanks to Ali for reporting. I will revert on 21.11 branch.

[1]
1 Changed variable:

[C] 'const char* rte_crypto_auth_algorithm_strings[]' was changed at rte_crypto_sym.h:372:1:
    size of symbol changed from 168 to 232

Error: ABI issue reported for 'abidiff --suppr dpdk/devtools/libabigail.abignore --no-added-syms --headers-dir1 /opt/dpdklab/abi_references/v21.11/armgigabyteref/include --headers-dir2 build_install/include /opt/dpdklab/abi_references/v21.11/armgigabyteref/dump/librte_cryptodev.dump build_install/dump/librte_cryptodev.dump'

Reply via email to