Library: Crypto
Package: Digest
Header: Poco/Crypto/DigestEngine.h
This class implements a Poco::DigestEngine for all digest algorithms supported by OpenSSL.
Direct Base Classes: Poco::DigestEngine
All Base Classes: Poco::DigestEngine
Member Functions: algorithm, digest, digestLength, reset, updateImpl
Inherited Functions: digest, digestLength, digestToHex, reset, update, updateImpl
DigestEngine(
const std::string & name
);
Creates a DigestEngine using the digest with the given name (e.g., "MD5", "SHA1", "SHA256", "SHA512", etc.). See the OpenSSL documentation for a list of supported digest algorithms.
Throws a Poco::NotFoundException if no algorithm with the given name exists.
~DigestEngine();
Destroys the DigestEngine.
const std::string & algorithm() const;
Returns the name of the digest algorithm.
const Poco::DigestEngine::Digest & digest();
unsigned digestLength() const;
See also: Poco::DigestEngine::digestLength()
void reset();
See also: Poco::DigestEngine::reset()
void updateImpl(
const void * data,
unsigned length
);
See also: Poco::DigestEngine::updateImpl()