added DigestEngine::digestFromHex

This commit is contained in:
Peter Schojer
2008-10-16 08:00:48 +00:00
parent 9a024d4516
commit 30e0ed3dd2
4 changed files with 54 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
//
// DigestEngine.h
//
// $Id: //poco/svn/Foundation/include/Poco/DigestEngine.h#2 $
// $Id: //poco/Main/Foundation/include/Poco/DigestEngine.h#3 $
//
// Library: Foundation
// Package: Crypt
@@ -85,6 +85,9 @@ public:
static std::string digestToHex(const Digest& bytes);
/// Converts a message digest into a string of hexadecimal numbers.
static Digest digestFromHex(const std::string& digest);
/// Converts a string created by digestToHex back to its Digest presentation
protected:
virtual void updateImpl(const void* data, unsigned length) = 0;
/// Updates the digest with the given data. Must be implemented