From 93975e699a89c5a99dcfb9d6b987f71d2af9c835 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Thu, 30 Jan 2020 15:46:23 +0100 Subject: crypto-native: refactor AES code - use neutral types in preparation for ARMv8 support - simplify x86 key extraction support Type: refactor Change-Id: I947eb37b8c9d9ee6909bb32ef14c4de192d40a46 Signed-off-by: Damjan Marion --- src/plugins/crypto_native/aes_gcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/crypto_native/aes_gcm.c') diff --git a/src/plugins/crypto_native/aes_gcm.c b/src/plugins/crypto_native/aes_gcm.c index 3eb7ae84e19..554fb2b2699 100644 --- a/src/plugins/crypto_native/aes_gcm.c +++ b/src/plugins/crypto_native/aes_gcm.c @@ -718,7 +718,7 @@ aesni_gcm_key_exp (vnet_crypto_key_t * key, aes_key_size_t ks) kd = clib_mem_alloc_aligned (sizeof (*kd), CLIB_CACHE_LINE_BYTES); /* expand AES key */ - aes_key_expand ((__m128i *) kd->Ke, key->data, ks); + aes_key_expand ((u8x16 *) kd->Ke, key->data, ks); /* pre-calculate H */ H = kd->Ke[0]; -- cgit 1.2.3-korg