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 | 69d5172b45a4cd66fceb1426e88983d1e0c5c026 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/digest/md5/md5.cpp | |
parent | 8b7dce1ea48c8a811ae189088c265b2da7600e98 (diff) | |
download | ydb-69d5172b45a4cd66fceb1426e88983d1e0c5c026.tar.gz |
Restoring authorship annotation for <aropan@yandex-team.ru>. Commit 2 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 f4692cd802..24a5b69eef 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; +} |