diff options
author | ermolovd <ermolovd@yandex-team.ru> | 2022-02-10 16:47:53 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:53 +0300 |
commit | 2a4a975b112fa0fa138abc7457fe67e0e1e7fd02 (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /library/cpp/digest/md5 | |
parent | b91bcef7c99a119b0846479ef71bfab4beec72ca (diff) | |
download | ydb-2a4a975b112fa0fa138abc7457fe67e0e1e7fd02.tar.gz |
Restoring authorship annotation for <ermolovd@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/digest/md5')
-rw-r--r-- | library/cpp/digest/md5/md5.h | 4 | ||||
-rw-r--r-- | library/cpp/digest/md5/md5_medium_ut.cpp | 20 | ||||
-rw-r--r-- | library/cpp/digest/md5/medium_ut/ya.make | 8 |
3 files changed, 16 insertions, 16 deletions
diff --git a/library/cpp/digest/md5/md5.h b/library/cpp/digest/md5/md5.h index 33ce58ac92..2c17aa0518 100644 --- a/library/cpp/digest/md5/md5.h +++ b/library/cpp/digest/md5/md5.h @@ -68,8 +68,8 @@ public: private: void UpdatePart(TArrayRef<const ui8> data); - -private: + +private: ui8 BufferSize; /* size of buffer */ ui8 Buffer[64]; /* input buffer */ ui32 State[4]; /* state (ABCD) */ diff --git a/library/cpp/digest/md5/md5_medium_ut.cpp b/library/cpp/digest/md5/md5_medium_ut.cpp index ec1146e059..a940c5cb66 100644 --- a/library/cpp/digest/md5/md5_medium_ut.cpp +++ b/library/cpp/digest/md5/md5_medium_ut.cpp @@ -5,21 +5,21 @@ 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>(); + const size_t maxUi32 = (size_t)Max<unsigned int>(); TArrayHolder<char> buf(new char[maxUi32]); - memset(buf.Get(), 0, maxUi32); + memset(buf.Get(), 0, maxUi32); - MD5 r; - for (int i = 0; i < 5; ++i) { - r.Update(buf.Get(), maxUi32); - } + MD5 r; + for (int i = 0; i < 5; ++i) { + r.Update(buf.Get(), maxUi32); + } - char rs[33]; - TString s(r.End(rs)); - s.to_lower(); + char rs[33]; + TString s(r.End(rs)); + s.to_lower(); - UNIT_ASSERT_VALUES_EQUAL(s, "34a5a7ed4f0221310084e21a1e599659"); + UNIT_ASSERT_VALUES_EQUAL(s, "34a5a7ed4f0221310084e21a1e599659"); } } } diff --git a/library/cpp/digest/md5/medium_ut/ya.make b/library/cpp/digest/md5/medium_ut/ya.make index 406d56cf34..418c57f086 100644 --- a/library/cpp/digest/md5/medium_ut/ya.make +++ b/library/cpp/digest/md5/medium_ut/ya.make @@ -1,16 +1,16 @@ UNITTEST_FOR(library/cpp/digest/md5) -SIZE(MEDIUM) +SIZE(MEDIUM) + +TIMEOUT(120) -TIMEOUT(120) - OWNER( pg g:util ) SRCS( - md5_medium_ut.cpp + md5_medium_ut.cpp ) REQUIREMENTS(ram:10) |