Library: Foundation
Package: Crypt
Header: Poco/HMACEngine.h
This class implementes the HMAC message authentication code algorithm, as specified in RFC 2104. The underlying DigestEngine (MD5Engine, SHA1Engine, etc.) must be given as template argument. Since the HMACEngine is a DigestEngine, it can be used with the DigestStream class to create a HMAC for a stream.
Direct Base Classes: DigestEngine
All Base Classes: DigestEngine
Member Functions: digest, digestLength, init, reset, updateImpl
Inherited Functions: digest, digestLength, digestToHex, reset, update, updateImpl
BLOCK_SIZE = Engine::BLOCK_SIZE
DIGEST_SIZE = Engine::DIGEST_SIZE
 
 HMACEngine(
    const std::string & passphrase
);
 
 HMACEngine(
    const char * passphrase,
    unsigned length
);
 
   
 ~HMACEngine();
 
 const DigestEngine::Digest & digest();
 
   
 unsigned digestLength() const;
See also: Poco::DigestEngine::digestLength()
 
   
 void reset();
See also: Poco::DigestEngine::reset()
 
   
 void init(
    const char * passphrase,
    unsigned length
);
 
   
   
 void updateImpl(
    const void * data,
    unsigned length
);
See also: Poco::DigestEngine::updateImpl()