diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/digest/argonish/internal/argon2/argon2_base.h | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/digest/argonish/internal/argon2/argon2_base.h')
-rw-r--r-- | library/cpp/digest/argonish/internal/argon2/argon2_base.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/digest/argonish/internal/argon2/argon2_base.h b/library/cpp/digest/argonish/internal/argon2/argon2_base.h index 2385cc947c..9b02d1efbb 100644 --- a/library/cpp/digest/argonish/internal/argon2/argon2_base.h +++ b/library/cpp/digest/argonish/internal/argon2/argon2_base.h @@ -153,19 +153,19 @@ namespace NArgonish { ui8 in_buffer[BLAKE2B_OUTBYTES]; ui32 toproduce = outlen - BLAKE2B_OUTBYTES / 2; - TBlake2B<instructionSet> hash1(BLAKE2B_OUTBYTES); - hash1.Update(outlen); - hash1.Update(in, inlen); - hash1.Final(out_buffer, BLAKE2B_OUTBYTES); + TBlake2B<instructionSet> hash1(BLAKE2B_OUTBYTES); + hash1.Update(outlen); + hash1.Update(in, inlen); + hash1.Final(out_buffer, BLAKE2B_OUTBYTES); memcpy(out, out_buffer, BLAKE2B_OUTBYTES / 2); out += BLAKE2B_OUTBYTES / 2; while (toproduce > BLAKE2B_OUTBYTES) { memcpy(in_buffer, out_buffer, BLAKE2B_OUTBYTES); - TBlake2B<instructionSet> hash2(BLAKE2B_OUTBYTES); - hash2.Update(in_buffer, BLAKE2B_OUTBYTES); - hash2.Final(out_buffer, BLAKE2B_OUTBYTES); + TBlake2B<instructionSet> hash2(BLAKE2B_OUTBYTES); + hash2.Update(in_buffer, BLAKE2B_OUTBYTES); + hash2.Final(out_buffer, BLAKE2B_OUTBYTES); memcpy(out, out_buffer, BLAKE2B_OUTBYTES / 2); out += BLAKE2B_OUTBYTES / 2; toproduce -= BLAKE2B_OUTBYTES / 2; @@ -173,9 +173,9 @@ namespace NArgonish { memcpy(in_buffer, out_buffer, BLAKE2B_OUTBYTES); { - TBlake2B<instructionSet> hash3(toproduce); - hash3.Update(in_buffer, BLAKE2B_OUTBYTES); - hash3.Final(out_buffer, toproduce); + TBlake2B<instructionSet> hash3(toproduce); + hash3.Update(in_buffer, BLAKE2B_OUTBYTES); + hash3.Final(out_buffer, toproduce); memcpy(out, out_buffer, toproduce); } } |