aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/digest/argonish/internal
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/digest/argonish/internal
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/digest/argonish/internal')
-rw-r--r--library/cpp/digest/argonish/internal/argon2/argon2_base.h20
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 9b02d1efbb..2385cc947c 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);
}
}