aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/digest
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /library/cpp/digest
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/digest')
-rw-r--r--library/cpp/digest/argonish/ut/ut.cpp34
-rw-r--r--library/cpp/digest/argonish/ut_fat/ut.cpp30
-rw-r--r--library/cpp/digest/crc32c/crc32c_ut.cpp8
-rw-r--r--library/cpp/digest/lower_case/hash_ops_ut.cpp8
-rw-r--r--library/cpp/digest/lower_case/lchash_ut.cpp8
-rw-r--r--library/cpp/digest/md5/md5.cpp16
-rw-r--r--library/cpp/digest/md5/md5.h8
-rw-r--r--library/cpp/digest/md5/md5_medium_ut.cpp4
-rw-r--r--library/cpp/digest/md5/md5_ut.cpp8
-rw-r--r--library/cpp/digest/md5/ya.make6
-rw-r--r--library/cpp/digest/old_crc/crc_ut.cpp2
-rw-r--r--library/cpp/digest/old_crc/gencrc/main.cpp2
-rw-r--r--library/cpp/digest/sfh/sfh.h2
-rw-r--r--library/cpp/digest/sfh/sfh_ut.cpp2
14 files changed, 69 insertions, 69 deletions
diff --git a/library/cpp/digest/argonish/ut/ut.cpp b/library/cpp/digest/argonish/ut/ut.cpp
index 12ef530a18..e663ac15ac 100644
--- a/library/cpp/digest/argonish/ut/ut.cpp
+++ b/library/cpp/digest/argonish/ut/ut.cpp
@@ -2,7 +2,7 @@
#include <library/cpp/digest/argonish/blake2b.h>
#include <library/cpp/testing/unittest/registar.h>
-Y_UNIT_TEST_SUITE(ArgonishTest) {
+Y_UNIT_TEST_SUITE(ArgonishTest) {
const ui8 GenKatPassword[32] = {
0x01,
0x01,
@@ -130,7 +130,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
0x04,
};
- Y_UNIT_TEST(Argon2_Fr_Test) {
+ Y_UNIT_TEST(Argon2_Fr_Test) {
const ui32 mcost = 16;
const ui32 tcost = 1;
TArrayHolder<ui8> memory(new ui8[mcost * 1024]);
@@ -176,7 +176,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2_Factory_SelfTest) {
+ Y_UNIT_TEST(Argon2_Factory_SelfTest) {
try {
NArgonish::TArgon2Factory factory;
factory.GetInstructionSet();
@@ -185,7 +185,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Blake2B_Factory_SelfTest) {
+ Y_UNIT_TEST(Blake2B_Factory_SelfTest) {
try {
NArgonish::TBlake2BFactory factory;
factory.GetInstructionSet();
@@ -194,7 +194,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2d) {
+ Y_UNIT_TEST(Argon2d) {
const ui8 TResult[32] = {
0x7b, 0xa5, 0xa1, 0x7a, 0x72, 0xf7, 0xe5, 0x99,
0x77, 0xf7, 0xf2, 0x3d, 0x10, 0xe6, 0x21, 0x89,
@@ -221,7 +221,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2i) {
+ Y_UNIT_TEST(Argon2i) {
const ui8 TResult[32] = {
0x87, 0x4d, 0x23, 0xfb, 0x9f, 0x55, 0xe2, 0xff,
0x66, 0xbc, 0x19, 0x03, 0x46, 0xe7, 0x01, 0x19,
@@ -248,7 +248,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2id) {
+ Y_UNIT_TEST(Argon2id) {
const ui8 TResult[32] = {
0x99, 0xdf, 0xcf, 0xc2, 0x89, 0x76, 0x93, 0x9d,
0xa2, 0x97, 0x09, 0x44, 0x34, 0xd8, 0x6f, 0xd0,
@@ -275,7 +275,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2d_2p) {
+ Y_UNIT_TEST(Argon2d_2p) {
const ui8 TResult[32] = {
0x59, 0xb0, 0x94, 0x62, 0xcf, 0xdc, 0xd2, 0xb4,
0x0a, 0xbd, 0x17, 0x81, 0x0a, 0x47, 0x4a, 0x8e,
@@ -302,7 +302,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2i_2p) {
+ Y_UNIT_TEST(Argon2i_2p) {
const ui8 TResult[32] = {
0xc1, 0x0f, 0x00, 0x5e, 0xf8, 0x78, 0xc8, 0x07,
0x0e, 0x2c, 0xc5, 0x2f, 0x57, 0x75, 0x25, 0xc9,
@@ -329,7 +329,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2id_2p) {
+ Y_UNIT_TEST(Argon2id_2p) {
const ui8 TResult[32] = {
0x6c, 0x00, 0xb7, 0xa9, 0x00, 0xe5, 0x00, 0x4c,
0x24, 0x46, 0x9e, 0xc1, 0xe7, 0xc0, 0x1a, 0x99,
@@ -356,7 +356,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2d_2p_2th) {
+ Y_UNIT_TEST(Argon2d_2p_2th) {
const ui8 TResult[32] = {
0x2b, 0x47, 0x35, 0x39, 0x4a, 0x40, 0x3c, 0xc9,
0x05, 0xfb, 0x51, 0x25, 0x96, 0x68, 0x64, 0x43,
@@ -383,7 +383,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2id_2p_4th) {
+ Y_UNIT_TEST(Argon2id_2p_4th) {
const ui8 TResult[32] = {
0x4f, 0x93, 0xb5, 0xad, 0x78, 0xa4, 0xa9, 0x49,
0xfb, 0xe3, 0x55, 0x96, 0xd5, 0xa0, 0xc2, 0xab,
@@ -410,7 +410,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2d_2p_4th) {
+ Y_UNIT_TEST(Argon2d_2p_4th) {
const ui8 TResult[32] = {
0x8f, 0xa2, 0x7c, 0xed, 0x28, 0x38, 0x79, 0x0f,
0xba, 0x5c, 0x11, 0x85, 0x1c, 0xdf, 0x90, 0x88,
@@ -437,7 +437,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2i_2p_4th) {
+ Y_UNIT_TEST(Argon2i_2p_4th) {
const ui8 TResult[32] = {
0x61, 0x1c, 0x99, 0x3c, 0xb0, 0xb7, 0x23, 0x16,
0xbd, 0xa2, 0x6c, 0x4c, 0x2f, 0xe8, 0x2d, 0x39,
@@ -464,7 +464,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2d_128) {
+ Y_UNIT_TEST(Argon2d_128) {
const ui8 TResult[128] = {
0x4e, 0xc4, 0x6c, 0x4e, 0x8c, 0x32, 0x89, 0x65,
0xf9, 0x82, 0x2b, 0x00, 0x95, 0x00, 0x50, 0x0a,
@@ -503,7 +503,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Blake2B_16_ABC) {
+ Y_UNIT_TEST(Blake2B_16_ABC) {
const ui8 TResult[16] = {
0xcf, 0x4a, 0xb7, 0x91, 0xc6, 0x2b, 0x8d, 0x2b,
0x21, 0x09, 0xc9, 0x02, 0x75, 0x28, 0x78, 0x16};
@@ -522,7 +522,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Blake2B_64_ABC) {
+ Y_UNIT_TEST(Blake2B_64_ABC) {
const ui8 TResult[64] = {
0xba, 0x80, 0xa5, 0x3f, 0x98, 0x1c, 0x4d, 0x0d,
0x6a, 0x27, 0x97, 0xb6, 0x9f, 0x12, 0xf6, 0xe9,
diff --git a/library/cpp/digest/argonish/ut_fat/ut.cpp b/library/cpp/digest/argonish/ut_fat/ut.cpp
index 41fa001685..81bc9a696a 100644
--- a/library/cpp/digest/argonish/ut_fat/ut.cpp
+++ b/library/cpp/digest/argonish/ut_fat/ut.cpp
@@ -2,7 +2,7 @@
#include <library/cpp/digest/argonish/blake2b.h>
#include <library/cpp/testing/unittest/registar.h>
-Y_UNIT_TEST_SUITE(ArgonishTest) {
+Y_UNIT_TEST_SUITE(ArgonishTest) {
const ui8 GenKatPassword[32] = {
0x01,
0x01,
@@ -91,7 +91,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
#endif
;
- Y_UNIT_TEST(Argon2_Factory_SelfTest) {
+ Y_UNIT_TEST(Argon2_Factory_SelfTest) {
try {
NArgonish::TArgon2Factory factory;
} catch (...) {
@@ -99,7 +99,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2d) {
+ Y_UNIT_TEST(Argon2d) {
const ui8 TResult[32] = {
0x7b, 0xa5, 0xa1, 0x7a, 0x72, 0xf7, 0xe5, 0x99,
0x77, 0xf7, 0xf2, 0x3d, 0x10, 0xe6, 0x21, 0x89,
@@ -125,7 +125,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2i) {
+ Y_UNIT_TEST(Argon2i) {
const ui8 TResult[32] = {
0x87, 0x4d, 0x23, 0xfb, 0x9f, 0x55, 0xe2, 0xff,
0x66, 0xbc, 0x19, 0x03, 0x46, 0xe7, 0x01, 0x19,
@@ -151,7 +151,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2id) {
+ Y_UNIT_TEST(Argon2id) {
const ui8 TResult[32] = {
0x99, 0xdf, 0xcf, 0xc2, 0x89, 0x76, 0x93, 0x9d,
0xa2, 0x97, 0x09, 0x44, 0x34, 0xd8, 0x6f, 0xd0,
@@ -177,7 +177,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2d_2p) {
+ Y_UNIT_TEST(Argon2d_2p) {
const ui8 TResult[32] = {
0x59, 0xb0, 0x94, 0x62, 0xcf, 0xdc, 0xd2, 0xb4,
0x0a, 0xbd, 0x17, 0x81, 0x0a, 0x47, 0x4a, 0x8e,
@@ -203,7 +203,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2i_2p) {
+ Y_UNIT_TEST(Argon2i_2p) {
const ui8 TResult[32] = {
0xc1, 0x0f, 0x00, 0x5e, 0xf8, 0x78, 0xc8, 0x07,
0x0e, 0x2c, 0xc5, 0x2f, 0x57, 0x75, 0x25, 0xc9,
@@ -229,7 +229,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2id_2p) {
+ Y_UNIT_TEST(Argon2id_2p) {
const ui8 TResult[32] = {
0x6c, 0x00, 0xb7, 0xa9, 0x00, 0xe5, 0x00, 0x4c,
0x24, 0x46, 0x9e, 0xc1, 0xe7, 0xc0, 0x1a, 0x99,
@@ -255,7 +255,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2d_2p_2th) {
+ Y_UNIT_TEST(Argon2d_2p_2th) {
const ui8 TResult[32] = {
0x2b, 0x47, 0x35, 0x39, 0x4a, 0x40, 0x3c, 0xc9,
0x05, 0xfb, 0x51, 0x25, 0x96, 0x68, 0x64, 0x43,
@@ -281,7 +281,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2id_2p_4th) {
+ Y_UNIT_TEST(Argon2id_2p_4th) {
const ui8 TResult[32] = {
0x4f, 0x93, 0xb5, 0xad, 0x78, 0xa4, 0xa9, 0x49,
0xfb, 0xe3, 0x55, 0x96, 0xd5, 0xa0, 0xc2, 0xab,
@@ -307,7 +307,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2d_2p_4th) {
+ Y_UNIT_TEST(Argon2d_2p_4th) {
const ui8 TResult[32] = {
0x8f, 0xa2, 0x7c, 0xed, 0x28, 0x38, 0x79, 0x0f,
0xba, 0x5c, 0x11, 0x85, 0x1c, 0xdf, 0x90, 0x88,
@@ -333,7 +333,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2i_2p_4th) {
+ Y_UNIT_TEST(Argon2i_2p_4th) {
const ui8 TResult[32] = {
0x61, 0x1c, 0x99, 0x3c, 0xb0, 0xb7, 0x23, 0x16,
0xbd, 0xa2, 0x6c, 0x4c, 0x2f, 0xe8, 0x2d, 0x39,
@@ -359,7 +359,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Argon2d_128) {
+ Y_UNIT_TEST(Argon2d_128) {
const ui8 TResult[128] = {
0x4e, 0xc4, 0x6c, 0x4e, 0x8c, 0x32, 0x89, 0x65,
0xf9, 0x82, 0x2b, 0x00, 0x95, 0x00, 0x50, 0x0a,
@@ -397,7 +397,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Blake2B_16_ABC) {
+ Y_UNIT_TEST(Blake2B_16_ABC) {
const ui8 TResult[16] = {
0xcf, 0x4a, 0xb7, 0x91, 0xc6, 0x2b, 0x8d, 0x2b,
0x21, 0x09, 0xc9, 0x02, 0x75, 0x28, 0x78, 0x16};
@@ -415,7 +415,7 @@ Y_UNIT_TEST_SUITE(ArgonishTest) {
}
}
- Y_UNIT_TEST(Blake2B_64_ABC) {
+ Y_UNIT_TEST(Blake2B_64_ABC) {
const ui8 TResult[64] = {
0xba, 0x80, 0xa5, 0x3f, 0x98, 0x1c, 0x4d, 0x0d,
0x6a, 0x27, 0x97, 0xb6, 0x9f, 0x12, 0xf6, 0xe9,
diff --git a/library/cpp/digest/crc32c/crc32c_ut.cpp b/library/cpp/digest/crc32c/crc32c_ut.cpp
index aa31b83422..1343fb80c1 100644
--- a/library/cpp/digest/crc32c/crc32c_ut.cpp
+++ b/library/cpp/digest/crc32c/crc32c_ut.cpp
@@ -2,12 +2,12 @@
#include <library/cpp/testing/unittest/registar.h>
-Y_UNIT_TEST_SUITE(TestCrc32c) {
- Y_UNIT_TEST(TestCalc) {
+Y_UNIT_TEST_SUITE(TestCrc32c) {
+ Y_UNIT_TEST(TestCalc) {
UNIT_ASSERT_VALUES_EQUAL(Crc32c("abc", 3), ui32(910901175));
}
- Y_UNIT_TEST(TestUnaligned) {
+ Y_UNIT_TEST(TestUnaligned) {
const TString str(1000, 'a');
for (size_t substrLen = 0; substrLen <= str.length(); ++substrLen) {
const ui32 crc = Crc32c(str.data(), substrLen);
@@ -17,7 +17,7 @@ Y_UNIT_TEST_SUITE(TestCrc32c) {
}
}
- Y_UNIT_TEST(TestExtend) {
+ Y_UNIT_TEST(TestExtend) {
UNIT_ASSERT_VALUES_EQUAL(Crc32cExtend(1, "abc", 3), ui32(2466950601));
}
}
diff --git a/library/cpp/digest/lower_case/hash_ops_ut.cpp b/library/cpp/digest/lower_case/hash_ops_ut.cpp
index a7ab0b86ea..645ef7bb5c 100644
--- a/library/cpp/digest/lower_case/hash_ops_ut.cpp
+++ b/library/cpp/digest/lower_case/hash_ops_ut.cpp
@@ -2,8 +2,8 @@
#include <library/cpp/testing/unittest/registar.h>
-Y_UNIT_TEST_SUITE(TestCIHash) {
- Y_UNIT_TEST(TestYHash1) {
+Y_UNIT_TEST_SUITE(TestCIHash) {
+ Y_UNIT_TEST(TestYHash1) {
THashMap<TStringBuf, int, TCIOps, TCIOps> h;
h["Ab"] = 1;
@@ -13,7 +13,7 @@ Y_UNIT_TEST_SUITE(TestCIHash) {
UNIT_ASSERT_VALUES_EQUAL(h["ab"], 2);
}
- Y_UNIT_TEST(TestYHash2) {
+ Y_UNIT_TEST(TestYHash2) {
THashMap<const char*, int, TCIOps, TCIOps> h;
h["Ab"] = 1;
@@ -29,7 +29,7 @@ Y_UNIT_TEST_SUITE(TestCIHash) {
UNIT_ASSERT_VALUES_EQUAL(h["bc"], 3);
}
- Y_UNIT_TEST(Test1) {
+ Y_UNIT_TEST(Test1) {
UNIT_ASSERT_VALUES_EQUAL(TCIOps()("aBc3"), TCIOps()(TStringBuf("AbC3")));
UNIT_ASSERT(TCIOps()("aBc4", "AbC4"));
}
diff --git a/library/cpp/digest/lower_case/lchash_ut.cpp b/library/cpp/digest/lower_case/lchash_ut.cpp
index 5711fe7cd7..acd9f64934 100644
--- a/library/cpp/digest/lower_case/lchash_ut.cpp
+++ b/library/cpp/digest/lower_case/lchash_ut.cpp
@@ -2,19 +2,19 @@
#include <library/cpp/testing/unittest/registar.h>
-Y_UNIT_TEST_SUITE(TWebDaemonHash) {
- Y_UNIT_TEST(Stability) {
+Y_UNIT_TEST_SUITE(TWebDaemonHash) {
+ Y_UNIT_TEST(Stability) {
UNIT_ASSERT_VALUES_EQUAL(FnvCaseLess<ui64>("blah"), ULL(5923727754379976229));
UNIT_ASSERT_VALUES_EQUAL(FnvCaseLess<ui64>("blahminor"), ULL(8755704309003440816));
}
- Y_UNIT_TEST(CaseLess) {
+ Y_UNIT_TEST(CaseLess) {
UNIT_ASSERT_VALUES_EQUAL(FnvCaseLess<ui64>("blah"), FnvCaseLess<ui64>("bLah"));
UNIT_ASSERT_VALUES_EQUAL(FnvCaseLess<ui64>("blah"), FnvCaseLess<ui64>("blAh"));
UNIT_ASSERT_VALUES_EQUAL(FnvCaseLess<ui64>("blah"), FnvCaseLess<ui64>("BLAH"));
}
- Y_UNIT_TEST(Robustness) {
+ Y_UNIT_TEST(Robustness) {
UNIT_ASSERT(FnvCaseLess<ui64>("x-real-ip") != FnvCaseLess<ui64>("x-req-id"));
UNIT_ASSERT(FnvCaseLess<ui64>("x-real-ip") != FnvCaseLess<ui64>("x-start-time"));
}
diff --git a/library/cpp/digest/md5/md5.cpp b/library/cpp/digest/md5/md5.cpp
index 24a5b69eef..60eda2abea 100644
--- a/library/cpp/digest/md5/md5.cpp
+++ b/library/cpp/digest/md5/md5.cpp
@@ -14,7 +14,7 @@ namespace {
constexpr size_t MD5_PADDING_SHIFT = 56;
constexpr size_t MD5_HEX_DIGEST_LENGTH = 32;
- struct TMd5Stream: public IOutputStream {
+ struct TMd5Stream: public IOutputStream {
inline TMd5Stream(MD5* md5)
: M_(md5)
{
@@ -44,7 +44,7 @@ char* MD5::File(const char* filename, char* buf) {
} catch (...) {
}
- return nullptr;
+ return nullptr;
}
TString MD5::File(const TString& filename) {
@@ -61,7 +61,7 @@ char* MD5::Data(const TArrayRef<const ui8>& data, char* buf) {
return MD5().Update(data).End(buf);
}
-char* MD5::Data(const void* data, size_t len, char* buf) {
+char* MD5::Data(const void* data, size_t len, char* buf) {
return Data(MakeUnsignedArrayRef(data, len), buf);
}
@@ -76,11 +76,11 @@ TString MD5::Data(TStringBuf data) {
return Data(MakeUnsignedArrayRef(data));
}
-char* MD5::Stream(IInputStream* in, char* buf) {
+char* MD5::Stream(IInputStream* in, char* buf) {
return MD5().Update(in).End(buf);
}
-MD5& MD5::Update(IInputStream* in) {
+MD5& MD5::Update(IInputStream* in) {
TMd5Stream md5(this);
TransferData(in, &md5);
@@ -179,7 +179,7 @@ char* MD5::End(char* buf) {
if (!buf)
buf = (char*)malloc(33);
if (!buf)
- return nullptr;
+ return nullptr;
Final(digest);
for (ui8 i = 0; i < MD5_HEX_DIGEST_LENGTH / 2; i++) {
buf[i * 2] = hex[digest[i] >> 4];
@@ -194,10 +194,10 @@ char* MD5::End_b64(char* buf) {
if (!buf)
buf = (char*)malloc(25);
if (!buf)
- return nullptr;
+ return nullptr;
Final(digest);
Base64Encode(buf, digest, 16);
- buf[24] = '\0';
+ buf[24] = '\0';
return buf;
}
diff --git a/library/cpp/digest/md5/md5.h b/library/cpp/digest/md5/md5.h
index 2c17aa0518..74c002a82c 100644
--- a/library/cpp/digest/md5/md5.h
+++ b/library/cpp/digest/md5/md5.h
@@ -3,7 +3,7 @@
#include <util/generic/array_ref.h>
#include <util/generic/strbuf.h>
-class IInputStream;
+class IInputStream;
class MD5 {
public:
@@ -38,7 +38,7 @@ public:
// 8-byte xor-based mix
ui64 EndHalfMix();
- MD5& Update(IInputStream* in);
+ MD5& Update(IInputStream* in);
/*
* Return hex-encoded md5 checksum for given file.
@@ -48,11 +48,11 @@ public:
static char* File(const char* filename, char* buf);
static TString File(const TString& filename);
- static char* Data(const void* data, size_t len, char* buf);
+ static char* Data(const void* data, size_t len, char* buf);
static char* Data(const TArrayRef<const ui8>& data, char* buf);
static TString Data(const TArrayRef<const ui8>& data);
static TString Data(TStringBuf data);
- static char* Stream(IInputStream* in, char* buf);
+ static char* Stream(IInputStream* in, char* buf);
static TString Calc(TStringBuf data); // 32-byte hex-encoded
static TString Calc(const TArrayRef<const ui8>& data); // 32-byte hex-encoded
diff --git a/library/cpp/digest/md5/md5_medium_ut.cpp b/library/cpp/digest/md5/md5_medium_ut.cpp
index a940c5cb66..4ea147ff36 100644
--- a/library/cpp/digest/md5/md5_medium_ut.cpp
+++ b/library/cpp/digest/md5/md5_medium_ut.cpp
@@ -2,8 +2,8 @@
#include <library/cpp/testing/unittest/registar.h>
-Y_UNIT_TEST_SUITE(TMD5MediumTest) {
- Y_UNIT_TEST(TestOverflow) {
+Y_UNIT_TEST_SUITE(TMD5MediumTest) {
+ Y_UNIT_TEST(TestOverflow) {
if (sizeof(size_t) > sizeof(unsigned int)) {
const size_t maxUi32 = (size_t)Max<unsigned int>();
TArrayHolder<char> buf(new char[maxUi32]);
diff --git a/library/cpp/digest/md5/md5_ut.cpp b/library/cpp/digest/md5/md5_ut.cpp
index 1c3e4ad0a9..7c955f2f5a 100644
--- a/library/cpp/digest/md5/md5_ut.cpp
+++ b/library/cpp/digest/md5/md5_ut.cpp
@@ -5,8 +5,8 @@
#include <util/system/fs.h>
#include <util/stream/file.h>
-Y_UNIT_TEST_SUITE(TMD5Test) {
- Y_UNIT_TEST(TestMD5) {
+Y_UNIT_TEST_SUITE(TMD5Test) {
+ Y_UNIT_TEST(TestMD5) {
// echo -n 'qwertyuiopqwertyuiopasdfghjklasdfghjkl' | md5sum
constexpr const char* b = "qwertyuiopqwertyuiopasdfghjklasdfghjkl";
@@ -25,7 +25,7 @@ Y_UNIT_TEST_SUITE(TMD5Test) {
UNIT_ASSERT_NO_DIFF(result, TStringBuf("3ac00dd696b966fd74deee3c35a59d8f"));
}
- Y_UNIT_TEST(TestFile) {
+ Y_UNIT_TEST(TestFile) {
TString s = NUnitTest::RandomString(1000000, 1);
const TString tmpFile = "tmp";
@@ -49,7 +49,7 @@ Y_UNIT_TEST_SUITE(TMD5Test) {
UNIT_ASSERT_EQUAL(fileHash.size(), 0);
}
- Y_UNIT_TEST(TestIsMD5) {
+ Y_UNIT_TEST(TestIsMD5) {
UNIT_ASSERT_EQUAL(false, MD5::IsMD5(TStringBuf()));
UNIT_ASSERT_EQUAL(false, MD5::IsMD5(TStringBuf("4136ebb0e4c45d21e2b09294c75cfa0"))); // length 31
UNIT_ASSERT_EQUAL(false, MD5::IsMD5(TStringBuf("4136ebb0e4c45d21e2b09294c75cfa000"))); // length 33
diff --git a/library/cpp/digest/md5/ya.make b/library/cpp/digest/md5/ya.make
index c09ec1c326..16575b3926 100644
--- a/library/cpp/digest/md5/ya.make
+++ b/library/cpp/digest/md5/ya.make
@@ -9,9 +9,9 @@ SRCS(
md5.cpp
)
-PEERDIR(
+PEERDIR(
contrib/libs/nayuki_md5
library/cpp/string_utils/base64
-)
-
+)
+
END()
diff --git a/library/cpp/digest/old_crc/crc_ut.cpp b/library/cpp/digest/old_crc/crc_ut.cpp
index 46e1d5d29b..b53225729f 100644
--- a/library/cpp/digest/old_crc/crc_ut.cpp
+++ b/library/cpp/digest/old_crc/crc_ut.cpp
@@ -2,7 +2,7 @@
#include <library/cpp/testing/unittest/registar.h>
-#include <util/stream/output.h>
+#include <util/stream/output.h>
class TCrcTest: public TTestBase {
UNIT_TEST_SUITE(TCrcTest);
diff --git a/library/cpp/digest/old_crc/gencrc/main.cpp b/library/cpp/digest/old_crc/gencrc/main.cpp
index d5821304ce..d718fe67b7 100644
--- a/library/cpp/digest/old_crc/gencrc/main.cpp
+++ b/library/cpp/digest/old_crc/gencrc/main.cpp
@@ -1,4 +1,4 @@
-#include <util/stream/output.h>
+#include <util/stream/output.h>
#define POLY_16 0x1021
#define POLY_32 0xEDB88320UL
diff --git a/library/cpp/digest/sfh/sfh.h b/library/cpp/digest/sfh/sfh.h
index 372938654c..38cd654e1e 100644
--- a/library/cpp/digest/sfh/sfh.h
+++ b/library/cpp/digest/sfh/sfh.h
@@ -1,7 +1,7 @@
#pragma once
#include <util/system/defaults.h>
-#include <util/system/unaligned_mem.h>
+#include <util/system/unaligned_mem.h>
inline ui32 SuperFastHash(const void* d, size_t l) noexcept {
ui32 hash = (ui32)l;
diff --git a/library/cpp/digest/sfh/sfh_ut.cpp b/library/cpp/digest/sfh/sfh_ut.cpp
index 912999bae7..d7b9c2fbf9 100644
--- a/library/cpp/digest/sfh/sfh_ut.cpp
+++ b/library/cpp/digest/sfh/sfh_ut.cpp
@@ -2,7 +2,7 @@
#include <library/cpp/testing/unittest/registar.h>
-#include <util/stream/output.h>
+#include <util/stream/output.h>
class TSfhTest: public TTestBase {
UNIT_TEST_SUITE(TSfhTest);