diff options
author | fippo <fippo@yandex-team.ru> | 2022-02-10 16:50:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:08 +0300 |
commit | 3e57c324d47a3a202cb3c5a9648d2f92103d5213 (patch) | |
tree | 6913479b0d0b22ec99bbba7c96f2f930d9095600 /library/cpp/digest/md5/md5.cpp | |
parent | bebbbda5c5ff4ec70d301ac897eb8d6c8da7a9a4 (diff) | |
download | ydb-3e57c324d47a3a202cb3c5a9648d2f92103d5213.tar.gz |
Restoring authorship annotation for <fippo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/digest/md5/md5.cpp')
-rw-r--r-- | library/cpp/digest/md5/md5.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/digest/md5/md5.cpp b/library/cpp/digest/md5/md5.cpp index 24a5b69eefb..b1e42295ace 100644 --- a/library/cpp/digest/md5/md5.cpp +++ b/library/cpp/digest/md5/md5.cpp @@ -222,14 +222,14 @@ TString MD5::Calc(const TArrayRef<const ui8>& data) { TString MD5::CalcRaw(TStringBuf data) { return CalcRaw(MakeUnsignedArrayRef(data)); -} - +} + TString MD5::CalcRaw(const TArrayRef<const ui8>& data) { TString result; result.ReserveAndResize(16); MD5().Update(data).Final(reinterpret_cast<ui8*>(result.begin())); - return result; -} + return result; +} ui64 MD5::CalcHalfMix(const char* data, size_t len) { return CalcHalfMix(MakeUnsignedArrayRef(data, len)); |