aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/digest/md5
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/digest/md5
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/digest/md5')
-rw-r--r--library/cpp/digest/md5/md5.cpp6
-rw-r--r--library/cpp/digest/md5/md5.h2
-rw-r--r--library/cpp/digest/md5/md5_ut.cpp8
3 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/digest/md5/md5.cpp b/library/cpp/digest/md5/md5.cpp
index 24a5b69eef..181fbcc812 100644
--- a/library/cpp/digest/md5/md5.cpp
+++ b/library/cpp/digest/md5/md5.cpp
@@ -38,7 +38,7 @@ namespace {
char* MD5::File(const char* filename, char* buf) {
try {
- TUnbufferedFileInput fi(filename);
+ TUnbufferedFileInput fi(filename);
return Stream(&fi, buf);
} catch (...) {
@@ -47,7 +47,7 @@ char* MD5::File(const char* filename, char* buf) {
return nullptr;
}
-TString MD5::File(const TString& filename) {
+TString MD5::File(const TString& filename) {
TString buf;
buf.ReserveAndResize(MD5_HEX_DIGEST_LENGTH);
auto result = MD5::File(filename.data(), buf.begin());
@@ -225,7 +225,7 @@ TString MD5::CalcRaw(TStringBuf data) {
}
TString MD5::CalcRaw(const TArrayRef<const ui8>& data) {
- TString result;
+ TString result;
result.ReserveAndResize(16);
MD5().Update(data).Final(reinterpret_cast<ui8*>(result.begin()));
return result;
diff --git a/library/cpp/digest/md5/md5.h b/library/cpp/digest/md5/md5.h
index 2c17aa0518..c2aab90e4a 100644
--- a/library/cpp/digest/md5/md5.h
+++ b/library/cpp/digest/md5/md5.h
@@ -46,7 +46,7 @@ public:
* Return nullptr / empty string if the file does not exist.
*/
static char* File(const char* filename, char* buf);
- static TString File(const TString& filename);
+ static TString File(const TString& filename);
static char* Data(const void* data, size_t len, char* buf);
static char* Data(const TArrayRef<const ui8>& data, char* buf);
diff --git a/library/cpp/digest/md5/md5_ut.cpp b/library/cpp/digest/md5/md5_ut.cpp
index 1c3e4ad0a9..70c2946f03 100644
--- a/library/cpp/digest/md5/md5_ut.cpp
+++ b/library/cpp/digest/md5/md5_ut.cpp
@@ -15,7 +15,7 @@ Y_UNIT_TEST_SUITE(TMD5Test) {
r.Update((const unsigned char*)b + 15, strlen(b) - 15);
char rs[33];
- TString s(r.End(rs));
+ TString s(r.End(rs));
s.to_lower();
UNIT_ASSERT_NO_DIFF(s, TStringBuf("3ac00dd696b966fd74deee3c35a59d8f"));
@@ -26,11 +26,11 @@ Y_UNIT_TEST_SUITE(TMD5Test) {
}
Y_UNIT_TEST(TestFile) {
- TString s = NUnitTest::RandomString(1000000, 1);
- const TString tmpFile = "tmp";
+ TString s = NUnitTest::RandomString(1000000, 1);
+ const TString tmpFile = "tmp";
{
- TFixedBufferFileOutput fo(tmpFile);
+ TFixedBufferFileOutput fo(tmpFile);
fo.Write(s.data(), s.size());
}