diff options
author | aropan <aropan@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 | 8b7dce1ea48c8a811ae189088c265b2da7600e98 (patch) | |
tree | 76ce17d16e613e00af5abcceb21c6c1b3037feab /library/cpp/digest/md5/md5.cpp | |
parent | 5014e8b2e7e17987c50a1b761cee7447f22e006c (diff) | |
download | ydb-8b7dce1ea48c8a811ae189088c265b2da7600e98.tar.gz |
Restoring authorship annotation for <aropan@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 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/digest/md5/md5.cpp b/library/cpp/digest/md5/md5.cpp index 24a5b69eefb..f4692cd8026 100644 --- a/library/cpp/digest/md5/md5.cpp +++ b/library/cpp/digest/md5/md5.cpp @@ -4,7 +4,7 @@ #include <util/stream/input.h> #include <util/stream/file.h> -#include <util/string/hex.h> +#include <util/string/hex.h> #include <contrib/libs/nayuki_md5/md5.h> @@ -230,7 +230,7 @@ TString MD5::CalcRaw(const TArrayRef<const ui8>& data) { MD5().Update(data).Final(reinterpret_cast<ui8*>(result.begin())); return result; } - + ui64 MD5::CalcHalfMix(const char* data, size_t len) { return CalcHalfMix(MakeUnsignedArrayRef(data, len)); } @@ -249,12 +249,12 @@ bool MD5::IsMD5(TStringBuf data) { bool MD5::IsMD5(const TArrayRef<const ui8>& data) { if (data.size() != 32) { - return false; - } + return false; + } for (const ui8 *p = data.data(), *e = data.data() + data.size(); p != e; ++p) { if (Char2DigitTable[*p] == '\xff') { - return false; - } - } - return true; -} + return false; + } + } + return true; +} |