summaryrefslogtreecommitdiff
path: root/src/MessageDigest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/MessageDigest.cc')
-rw-r--r--src/MessageDigest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MessageDigest.cc b/src/MessageDigest.cc
index 4c2ea17e..87010f78 100644
--- a/src/MessageDigest.cc
+++ b/src/MessageDigest.cc
@@ -172,12 +172,12 @@ void MessageDigest::digest(unsigned char* md)
pImpl_->digest(md);
}
-std::string MessageDigest::hexDigest()
+std::string MessageDigest::digest()
{
size_t length = pImpl_->getDigestLength();
array_ptr<unsigned char> buf(new unsigned char[length]);
pImpl_->digest(buf);
- std::string hd = util::toHex(buf, length);
+ std::string hd(&buf[0], &buf[length]);
return hd;
}