#include <WinCAPICryptoHash.hpp>
Inheritance diagram for WinCAPICryptoHash:
Uses the Windows Crypt functions to perform digest functions.
Public Member Functions | |
Constructors/Destructors | |
WinCAPICryptoHash (HCRYPTPROV prov, XSECCryptoHash::HashType alg) | |
Construct a Hash object. | |
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) |
|
Construct a Hash object. Creates a Windows Crypto API based hash object of the required type.
|
|
|
|
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. |
|
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. Re-initialises the digest structure. Implements XSECCryptoHash. |
|
Does nothing. If the required function is an HMAC function, then WinCAPICryptoHashHMAC should be used.
Implements XSECCryptoHash. |