|
10Duke Enterprise C++ SDK
|
#include <WinCNGHash.h>
WINCNG implementation of cryptographic hash (e.g.
SHA256).
Public Member Functions | |
| WinCNGHash (::BCRYPT_ALG_HANDLE algorithm) | |
| Constructs a new instance. | |
| std::size_t | length () const override |
| Returns length (in bytes) of the resulting digest. | |
| MessageDigest * | update (const unsigned char *message, std::size_t messageLength) override |
| Updates the digest. | |
| void | digestTo (unsigned char *digest) override |
| Computes the digest to pre-allocated buffer. | |
| std::unique_ptr< tenduke::utl::BinaryData > | digest () override |
| Computes the digest. | |
|
overridevirtual |
Computes the digest.
| tenduke::crypto::CryptoException | on error |
Implements tenduke::crypto::MessageDigest.
|
overridevirtual |
Computes the digest to pre-allocated buffer.
| messageDigest | the computed digest is placed here (needs to proper size, use MessageDigest::length()). |
| tenduke::crypto::CryptoException | on error |
Implements tenduke::crypto::MessageDigest.
|
overridevirtual |
Returns length (in bytes) of the resulting digest.
Implements tenduke::crypto::MessageDigest.
|
overridevirtual |
Updates the digest.
| message | - |
| messageLength | - |
| tenduke::crypto::CryptoException | on error |
Implements tenduke::crypto::MessageDigest.