#include <OpenSSLCryptoHashHMAC.hpp>
Inheritance diagram for OpenSSLCryptoHashHMAC:
Uses the OpenSSL EVP_digest functions to implement the various HMAC hash functions required by the library.
Public Member Functions | |
virtual void | reset (void) |
Reset the hash function. | |
virtual void | hash (unsigned char *data, unsigned int length) |
Hash some data. | |
virtual unsigned int | finish (unsigned char *hash, unsigned int maxLength) |
Finish up a Digest operation and read the result. | |
Constructors and Destructors | |
OpenSSLCryptoHashHMAC (XSECCryptoHash::HashType alg) | |
Constructor. | |
virtual | ~OpenSSLCryptoHashHMAC () |
Destructor. | |
HMAC Functions | |
virtual void | setKey (XSECCryptoKey *key) |
Set the HMAC key. | |
virtual const XMLCh * | getProviderName () |
Return the string identifier for the OpenSSL interface. | |
Information functions | |
virtual HashType | getHashType (void) |
|
Constructor. Create the object, with the indicated algorithm (Currently supports MD5 and SHA1)
|
|
Destructor. Destroy the object. Will ensure any key material is also destroyed |
|
Finish up a Digest operation and read the result. This call tells the CryptoHash object that the input is complete and to finalise the Digest. The output of the digest is read into the hash buffer (at most maxLength bytes). This is effectively the signature for the data that has been run through the HMAC function.
Implements XSECCryptoHash. |
|
Determine the hash type of this object
Implements XSECCryptoHash. |
|
Return the string identifier for the OpenSSL interface.
|
|
Hash some data. Take length bytes of data from the data buffer and update the hash that already exists. This function may (and normally will) be called many times for large blocks of data.
Implements XSECCryptoHash. |
|
Reset the hash function. Re-initialises the digest structure. Implements XSECCryptoHash. |
|
Set the HMAC key. Sets the key - which needs to have a base class of OpenSSLCryptoKeyHMAC.
Implements XSECCryptoHash. |