summaryrefslogtreecommitdiffstats
path: root/src/plugins/crypto_native/crypto_native.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2020-09-15 11:05:23 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-09-15 11:25:25 +0000
commitddd8c0fe59f838e1fd2f0317d319963951964ab5 (patch)
treefb9b865fb686200311b204da1ba3de401abe8316 /src/plugins/crypto_native/crypto_native.h
parent748bf82a500ee594733af4d005ffe3191027ebaf (diff)
crypto-native: fix issues detected by coiverity
Type: fix Change-Id: Id61aa407eeeb4d44cf47ed39283a0c79ed3abbee Signed-off-by: Damjan Marion <damarion@cisco.com> (cherry picked from commit 139a6ae0dd460a6b8a5884e65cfd96f0c409f69e)
Diffstat (limited to 'src/plugins/crypto_native/crypto_native.h')
-rw-r--r--src/plugins/crypto_native/crypto_native.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/crypto_native/crypto_native.h b/src/plugins/crypto_native/crypto_native.h
index f1153737dea..5b774b302de 100644
--- a/src/plugins/crypto_native/crypto_native.h
+++ b/src/plugins/crypto_native/crypto_native.h
@@ -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