diff options
author | vladimirch <vladimirch@yandex-team.ru> | 2022-02-10 16:50:14 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:14 +0300 |
commit | b99c7485cc2c2d0f8ee3eb01085cd839900198d0 (patch) | |
tree | 4c87e8278e443fada0b2e07116b7abcadb351d91 /library | |
parent | 69d5172b45a4cd66fceb1426e88983d1e0c5c026 (diff) | |
download | ydb-b99c7485cc2c2d0f8ee3eb01085cd839900198d0.tar.gz |
Restoring authorship annotation for <vladimirch@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library')
-rw-r--r-- | library/cpp/digest/md5/md5.cpp | 4 | ||||
-rw-r--r-- | library/cpp/digest/md5/md5_ut.cpp | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/digest/md5/md5.cpp b/library/cpp/digest/md5/md5.cpp index 24a5b69eef..ee672f625c 100644 --- a/library/cpp/digest/md5/md5.cpp +++ b/library/cpp/digest/md5/md5.cpp @@ -55,8 +55,8 @@ TString MD5::File(const TString& filename) { buf.clear(); } return buf; -} - +} + char* MD5::Data(const TArrayRef<const ui8>& data, char* buf) { return MD5().Update(data).End(buf); } diff --git a/library/cpp/digest/md5/md5_ut.cpp b/library/cpp/digest/md5/md5_ut.cpp index 1c3e4ad0a9..10caac6137 100644 --- a/library/cpp/digest/md5/md5_ut.cpp +++ b/library/cpp/digest/md5/md5_ut.cpp @@ -41,12 +41,12 @@ Y_UNIT_TEST_SUITE(TMD5Test) { UNIT_ASSERT_NO_DIFF(fileHash, memoryHash); - fileHash = MD5::File(tmpFile); + fileHash = MD5::File(tmpFile); UNIT_ASSERT_NO_DIFF(fileHash, memoryHash); - + NFs::Remove(tmpFile); - fileHash = MD5::File(tmpFile); - UNIT_ASSERT_EQUAL(fileHash.size(), 0); + fileHash = MD5::File(tmpFile); + UNIT_ASSERT_EQUAL(fileHash.size(), 0); } Y_UNIT_TEST(TestIsMD5) { |