crypto-native: fix issues detected by coiverity
[vpp.git] / src / plugins / crypto_native / crypto_native.h
index f115373..5b774b3 100644 (file)
@@ -23,7 +23,11 @@ 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