diff options
author | Damjan Marion <damarion@cisco.com> | 2020-02-24 14:13:18 +0100 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2020-02-24 14:13:27 +0100 |
commit | 2e9a06fa6013e4ac9be3325c2755e0631d9c6ae4 (patch) | |
tree | 766b323403a5e1fefd669653ee116a09ff74c7c6 /src/plugins | |
parent | e9570d4ee36fab5ea449b33e6ea4e954b3233f4b (diff) |
crypto-native: do not overwrite data after partial tag
Type: fix
Change-Id: I01de5f8813faff5406ccf67c21c42393c8648af6
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/crypto_native/aes_gcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/crypto_native/aes_gcm.c b/src/plugins/crypto_native/aes_gcm.c index 41a9d480269..d0f57da1e09 100644 --- a/src/plugins/crypto_native/aes_gcm.c +++ b/src/plugins/crypto_native/aes_gcm.c @@ -579,7 +579,7 @@ aes_gcm (u8x16u * in, u8x16u * out, u8x16u * addt, u8x16u * iv, u8x16u * tag, { /* store tag */ if (tag_len) - aes_store_partial (tag, T, (1 << tag_len) - 1); + aes_store_partial (tag, T, tag_len); else tag[0] = T; } |