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 | 9a6b05f93140131e64aa069bad7092698970130d (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 | |
parent | b99c7485cc2c2d0f8ee3eb01085cd839900198d0 (diff) | |
download | ydb-9a6b05f93140131e64aa069bad7092698970130d.tar.gz |
Restoring authorship annotation for <vladimirch@yandex-team.ru>. Commit 2 of 2.
-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 ee672f625c..24a5b69eef 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 10caac6137..1c3e4ad0a9 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) { |