aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/crypto_native
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/crypto_native')
-rw-r--r--src/plugins/crypto_native/aes_gcm.c2
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;
}