aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/digest
diff options
context:
space:
mode:
authormelkov <melkov@yandex-team.ru>2022-02-10 16:48:14 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:14 +0300
commit2c532b38e6aeb4fd88531027c7335690fd34c4e5 (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/digest
parent438546c8737d5c1fdeb31157dcf999717d930eec (diff)
downloadydb-2c532b38e6aeb4fd88531027c7335690fd34c4e5.tar.gz
Restoring authorship annotation for <melkov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/digest')
-rw-r--r--library/cpp/digest/md5/md5.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/digest/md5/md5.cpp b/library/cpp/digest/md5/md5.cpp
index 198afaabd9..24a5b69eef 100644
--- a/library/cpp/digest/md5/md5.cpp
+++ b/library/cpp/digest/md5/md5.cpp
@@ -192,15 +192,15 @@ char* MD5::End(char* buf) {
char* MD5::End_b64(char* buf) {
ui8 digest[16];
if (!buf)
- buf = (char*)malloc(25);
+ buf = (char*)malloc(25);
if (!buf)
return nullptr;
- Final(digest);
+ Final(digest);
Base64Encode(buf, digest, 16);
buf[24] = '\0';
- return buf;
-}
-
+ return buf;
+}
+
ui64 MD5::EndHalfMix() {
ui8 digest[16];
Final(digest);