#include <WinCAPICryptoHash.hpp>
Inheritance diagram for WinCAPICryptoHash:
Uses the Windows Crypt functions to perform digest functions.
Public Member Functions | |
WinCAPICryptoHash (XSECCryptoHash::HashType alg) | |
virtual | ~WinCAPICryptoHash () |
virtual void | setKey (XSECCryptoKey *key) |
virtual void | reset (void) |
Rest 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. | |
virtual HashType | getHashType (void) |
Constructors/Destructors | |
WinCAPICryptoHash (WinCAPICryptoProvider *owner, XSECCryptoHash::HashType alg) | |
virtual | ~WinCAPICryptoHash () |
HMAC Functions | |
virtual void | setKey (XSECCryptoKey *key) |
Digest/Hash functions | |
virtual void | reset (void) |
Rest 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. | |
Information functions | |
virtual HashType | getHashType (void) |
|
|
|
|
|
|
|
|
|
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)
Implements XSECCryptoHash. |
|
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)
Implements XSECCryptoHash. |
|
Determine the hash type of this object
Implements XSECCryptoHash. |
|
Determine the hash type of this object
Implements XSECCryptoHash. |
|
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. |
|
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. |
|
Rest the hash function. XSEC will call the reset() function prior to re-using a CryptoHash object. Implements XSECCryptoHash. |
|
Rest the hash function. Re-initialises the digest structure. Implements XSECCryptoHash. |
|
The HMAC classes are treated in the library as standard hash objects that just happen to take a key. Thus all hash functions implement this function (potentially just to throw an exception) Sets the key - which needs to have a base class of XSECCryptoKeyHMAC.
Implements XSECCryptoHash. |
|
Does nothing. If the required function is an HMAC function, then WinCAPICryptoHashHMAC should be used.
Implements XSECCryptoHash. |