diff options
author | Benoît Ganne <bganne@cisco.com> | 2022-03-23 14:17:26 +0100 |
---|---|---|
committer | Benoît Ganne <bganne@cisco.com> | 2022-03-23 14:19:15 +0100 |
commit | ed59dac6274d024390e84e111c5afe7444ece4b5 (patch) | |
tree | 1accb5eb247a830d6811876e96f5905e0249a826 /src/plugins/crypto_native/aes_cbc.c | |
parent | 6bd8d3fbba74f8f80a0c09f87c6cbfddd054042f (diff) |
crypto-native: fix dst index typo in VAES
Type: fix
Change-Id: Ib025d8c1bc9bd651b6448d6a41fd1efa6f0b7362
Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins/crypto_native/aes_cbc.c')
-rw-r--r-- | src/plugins/crypto_native/aes_cbc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/crypto_native/aes_cbc.c b/src/plugins/crypto_native/aes_cbc.c index d2670cfc36e..247322dab0d 100644 --- 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; |