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 (from parent 1:
e9570d4
)
crypto-native: do not overwrite data after partial tag
87/25387/1
author
Damjan Marion
<damarion@cisco.com>
Mon, 24 Feb 2020 13:13:18 +0000
(14:13 +0100)
committer
Damjan Marion
<damarion@cisco.com>
Mon, 24 Feb 2020 13:13:27 +0000
(14:13 +0100)
Type: fix
Change-Id: I01de5f8813faff5406ccf67c21c42393c8648af6
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/plugins/crypto_native/aes_gcm.c
patch
|
blob
|
history
diff --git
a/src/plugins/crypto_native/aes_gcm.c
b/src/plugins/crypto_native/aes_gcm.c
index
41a9d48
..
d0f57da
100644
(file)
--- 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)
{
/* 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;
}
else
tag[0] = T;
}