aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/digest/argonish
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:17 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:17 +0300
commitd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch)
treedd4bd3ca0f36b817e96812825ffaf10d645803f2 /library/cpp/digest/argonish
parent72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff)
downloadydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/digest/argonish')
-rw-r--r--library/cpp/digest/argonish/ut/ut.cpp212
-rw-r--r--library/cpp/digest/argonish/ut_fat/ut.cpp136
2 files changed, 174 insertions, 174 deletions
diff --git a/library/cpp/digest/argonish/ut/ut.cpp b/library/cpp/digest/argonish/ut/ut.cpp
index 67840aacc5..12ef530a18 100644
--- a/library/cpp/digest/argonish/ut/ut.cpp
+++ b/library/cpp/digest/argonish/ut/ut.cpp
@@ -4,130 +4,130 @@
Y_UNIT_TEST_SUITE(ArgonishTest) {
const ui8 GenKatPassword[32] = {
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
};
const ui8 GenKatSalt[16] = {
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
};
const ui8 GenKatSecret[8] = {
- 0x03,
- 0x03,
- 0x03,
- 0x03,
- 0x03,
- 0x03,
- 0x03,
- 0x03,
+ 0x03,
+ 0x03,
+ 0x03,
+ 0x03,
+ 0x03,
+ 0x03,
+ 0x03,
+ 0x03,
};
const ui8 FrPassword[13] = {
- 'm',
- 'e',
- 'g',
- 'a',
- '_',
- 'p',
- 'a',
- 's',
- 's',
- 'w',
- 'o',
- 'r',
- 'd',
+ 'm',
+ 'e',
+ 'g',
+ 'a',
+ '_',
+ 'p',
+ 'a',
+ 's',
+ 's',
+ 'w',
+ 'o',
+ 'r',
+ 'd',
};
const ui8 FrSecret[16] = {
- 'm',
- 'e',
- 'g',
- 'a',
- '_',
- 's',
- 'e',
- 'c',
- 'r',
- 'e',
- 't',
- '_',
- 'k',
- 'e',
- 'y',
- '2',
+ 'm',
+ 'e',
+ 'g',
+ 'a',
+ '_',
+ 's',
+ 'e',
+ 'c',
+ 'r',
+ 'e',
+ 't',
+ '_',
+ 'k',
+ 'e',
+ 'y',
+ '2',
};
const ui8 FrSalt[9] = {
- 'm',
- 'e',
- 'g',
- 'a',
- '_',
- 's',
- 'a',
- 'l',
- 't',
+ 'm',
+ 'e',
+ 'g',
+ 'a',
+ '_',
+ 's',
+ 'a',
+ 'l',
+ 't',
};
const ui8 GenKatAAD[12] = {
- 0x04,
- 0x04,
- 0x04,
- 0x04,
- 0x04,
- 0x04,
- 0x04,
- 0x04,
- 0x04,
- 0x04,
- 0x04,
- 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
};
Y_UNIT_TEST(Argon2_Fr_Test) {
diff --git a/library/cpp/digest/argonish/ut_fat/ut.cpp b/library/cpp/digest/argonish/ut_fat/ut.cpp
index faab88c7fc..41fa001685 100644
--- a/library/cpp/digest/argonish/ut_fat/ut.cpp
+++ b/library/cpp/digest/argonish/ut_fat/ut.cpp
@@ -4,83 +4,83 @@
Y_UNIT_TEST_SUITE(ArgonishTest) {
const ui8 GenKatPassword[32] = {
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
- 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
+ 0x01,
};
const ui8 GenKatSalt[16] = {
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
- 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
+ 0x02,
};
const ui8 GenKatSecret[8] = {
- 0x03,
- 0x03,
- 0x03,
- 0x03,
- 0x03,
- 0x03,
- 0x03,
- 0x03,
+ 0x03,
+ 0x03,
+ 0x03,
+ 0x03,
+ 0x03,
+ 0x03,
+ 0x03,
+ 0x03,
};
const ui8 GenKatAAD[12] = {
- 0x04,
- 0x04,
- 0x04,
- 0x04,
- 0x04,
- 0x04,
- 0x04,
- 0x04,
- 0x04,
- 0x04,
- 0x04,
- 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
+ 0x04,
};
constexpr NArgonish::EInstructionSet MaxArch =