Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
crypto-native: refactor AES code
[vpp.git]
/
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
3eb7ae8
..
554fb2b
100644
(file)
--- 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];