From a6a5031e78f58684ad6d210a6acb9d46b990402b Mon Sep 17 00:00:00 2001 From: Ray Kinsella Date: Fri, 13 Nov 2020 09:29:44 +0000 Subject: crypto-native: fix multi-arch variant initialization crypto_native/main.h is being built as default, and crypto_native_main is initialized with a size of 64 bytes. crypto_native/aes_gcm.c and crypto_native/aes_cbc.c are march variants, their ICL variants are expecting crypto_native_main to be 256 bytes. Type: fix Signed-off-by: Georgii Tkachuk Signed-off-by: Fan Zhang Signed-off-by: Ray Kinsella Change-Id: I4cddb75b712ea83c9cfca621887605d7bae104ec --- src/plugins/crypto_native/crypto_native.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/plugins/crypto_native/crypto_native.h b/src/plugins/crypto_native/crypto_native.h index 5b774b302de..d5c33daa1a6 100644 --- a/src/plugins/crypto_native/crypto_native.h +++ b/src/plugins/crypto_native/crypto_native.h @@ -23,11 +23,7 @@ typedef void *(crypto_native_key_fn_t) (vnet_crypto_key_t * key); typedef struct { CLIB_CACHE_LINE_ALIGN_MARK (cacheline0); -#if __VAES__ u8x16 cbc_iv[16]; -#else - u8x16 cbc_iv[4]; -#endif } crypto_native_per_thread_data_t; typedef struct -- cgit 1.2.3-korg