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
This commit is contained in:
Ray Kinsella
2020-11-13 09:29:44 +00:00
committed by Damjan Marion
parent 1e0e3d55a8
commit a6a5031e78

View File

@ -23,11 +23,7 @@ typedef void *(crypto_native_key_fn_t) (vnet_crypto_key_t * key);
typedef struct typedef struct
{ {
CLIB_CACHE_LINE_ALIGN_MARK (cacheline0); CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
#if __VAES__
u8x16 cbc_iv[16]; u8x16 cbc_iv[16];
#else
u8x16 cbc_iv[4];
#endif
} crypto_native_per_thread_data_t; } crypto_native_per_thread_data_t;
typedef struct typedef struct