|
|
@ -57,6 +57,10 @@ public: |
|
|
|
{ |
|
|
|
{ |
|
|
|
update(buf.c_str(), buf.size()); |
|
|
|
update(buf.c_str(), buf.size()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
std::string digest(const std::string& buf) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return digest(buf.c_str(), buf.size()); |
|
|
|
|
|
|
|
} |
|
|
|
std::string digest(const void *buf, size_t bufSize) |
|
|
|
std::string digest(const void *buf, size_t bufSize) |
|
|
|
{ |
|
|
|
{ |
|
|
|
std::string md(SHA256_DIGEST_LENGTH, 0); |
|
|
|
std::string md(SHA256_DIGEST_LENGTH, 0); |
|
|
@ -93,6 +97,10 @@ public: |
|
|
|
{ |
|
|
|
{ |
|
|
|
update(buf.c_str(), buf.size()); |
|
|
|
update(buf.c_str(), buf.size()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
std::string digest(const std::string& buf) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return digest(buf.c_str(), buf.size()); |
|
|
|
|
|
|
|
} |
|
|
|
std::string digest(const void *buf, size_t bufSize) |
|
|
|
std::string digest(const void *buf, size_t bufSize) |
|
|
|
{ |
|
|
|
{ |
|
|
|
std::string md(SHA512_DIGEST_LENGTH, 0); |
|
|
|
std::string md(SHA512_DIGEST_LENGTH, 0); |
|
|
@ -300,6 +308,10 @@ public: |
|
|
|
{ |
|
|
|
{ |
|
|
|
update(buf.c_str(), buf.size()); |
|
|
|
update(buf.c_str(), buf.size()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
std::string digest(const std::string& buf) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return digest(buf.c_str(), buf.size()); |
|
|
|
|
|
|
|
} |
|
|
|
std::string digest(const void *buf, size_t bufSize) |
|
|
|
std::string digest(const void *buf, size_t bufSize) |
|
|
|
{ |
|
|
|
{ |
|
|
|
std::string md(outByteSize_, 0); |
|
|
|
std::string md(outByteSize_, 0); |
|
|
@ -437,6 +449,10 @@ public: |
|
|
|
{ |
|
|
|
{ |
|
|
|
update(buf.c_str(), buf.size()); |
|
|
|
update(buf.c_str(), buf.size()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
std::string digest(const std::string& buf) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return digest(buf.c_str(), buf.size()); |
|
|
|
|
|
|
|
} |
|
|
|
std::string digest(const void *buf, size_t bufSize) |
|
|
|
std::string digest(const void *buf, size_t bufSize) |
|
|
|
{ |
|
|
|
{ |
|
|
|
std::string md(outByteSize_, 0); |
|
|
|
std::string md(outByteSize_, 0); |
|
|
|