Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
6bd8d3f
)
crypto-native: fix dst index typo in VAES
46/35746/1
author
Benoît Ganne
<bganne@cisco.com>
Wed, 23 Mar 2022 13:17:26 +0000
(14:17 +0100)
committer
Benoît Ganne
<bganne@cisco.com>
Wed, 23 Mar 2022 13:19:15 +0000
(14:19 +0100)
Type: fix
Change-Id: Ib025d8c1bc9bd651b6448d6a41fd1efa6f0b7362
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/plugins/crypto_native/aes_cbc.c
patch
|
blob
|
history
diff --git
a/src/plugins/crypto_native/aes_cbc.c
b/src/plugins/crypto_native/aes_cbc.c
index
d2670cf
..
247322d
100644
(file)
--- a/
src/plugins/crypto_native/aes_cbc.c
+++ b/
src/plugins/crypto_native/aes_cbc.c
@@
-187,7
+187,7
@@
vaes_cbc_dec (u8x64 *k, u8x64u *src, u8x64u *dst, u8x16u *iv, int count,
dst[0] = r[0] ^= aes_cbc_dec_permute (f, c[0]);
dst[1] = r[1] ^= aes_cbc_dec_permute (c[0], c[1]);
dst[2] = r[2] ^= aes_cbc_dec_permute (c[1], c[2]);
- dst[
4
] = r[3] ^= aes_cbc_dec_permute (c[2], c[3]);
+ dst[
3
] = r[3] ^= aes_cbc_dec_permute (c[2], c[3]);
f = c[3];
n_blocks -= 16;