crypto-native: fix multi-arch variant initialization 25/29925/3
authorRay Kinsella <mdr@ashroe.eu>
Fri, 13 Nov 2020 09:29:44 +0000 (09:29 +0000)
committerDamjan Marion <dmarion@me.com>
Fri, 13 Nov 2020 10:32:10 +0000 (10:32 +0000)
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

src/plugins/crypto_native/crypto_native.h

index 5b774b3..d5c33da 100644 (file)
@@ -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