aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRay Kinsella <mdr@ashroe.eu>2020-11-13 09:29:44 +0000
committerDamjan Marion <dmarion@me.com>2020-11-13 10:32:10 +0000
commit41c0f45a56d4db5b2ee4ae4fff7f3f0571a23189 (patch)
tree2e7d757d81b11d921bf844d53d944fc8576535c7
parentb227aa699faabd79d6f3e8c43c0a912086b0c95e (diff)
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 <georgii.tkachuk@intel.com> Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Signed-off-by: Ray Kinsella <mdr@ashroe.eu> Change-Id: I4cddb75b712ea83c9cfca621887605d7bae104ec
-rw-r--r--src/plugins/crypto_native/crypto_native.h4
1 files changed, 0 insertions, 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