Skip to content

Commit 56dccf9

Browse files
committed
update initialization for security
1 parent 01e3034 commit 56dccf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/HiAE.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,8 @@ void HiAE_stream_finalize(DATA128b* state, uint64_t ad_len, uint64_t plain_len,
574574
lens[1] = plain_len * 8;
575575
DATA128b temp, tmp[STATE];
576576
temp = SIMD_LOAD((uint8_t *)lens);
577-
INIT_UPDATE(temp);
578-
INIT_UPDATE(temp);
577+
INIT_UPDATE(temp, temp);
578+
INIT_UPDATE(temp, temp);
579579
temp = state[0];
580580
for (size_t i = 1; i < STATE; ++i) {
581581
temp = SIMD_XOR(temp, state[i]);

0 commit comments

Comments
 (0)