Kea
1.9.9-git
|
Botan implementation of Hash. More...
Public Member Functions | |
HashImpl (const HashAlgorithm hash_algorithm) | |
Constructor for specific hash algorithm. More... | |
HashImpl (const HashAlgorithm hash_algorithm) | |
Constructor for specific hash algorithm. More... | |
~HashImpl () | |
Destructor. More... | |
~HashImpl () | |
Destructor. More... | |
void | final (isc::util::OutputBuffer &result, size_t len) |
Calculate the final digest. More... | |
void | final (isc::util::OutputBuffer &result, size_t len) |
Calculate the final digest. More... | |
void | final (void *result, size_t len) |
Calculate the final digest. More... | |
void | final (void *result, size_t len) |
Calculate the final digest. More... | |
std::vector< uint8_t > | final (size_t len) |
Calculate the final digest. More... | |
std::vector< uint8_t > | final (size_t len) |
Calculate the final digest. More... | |
HashAlgorithm | getHashAlgorithm () const |
Returns the HashAlgorithm of the object. More... | |
HashAlgorithm | getHashAlgorithm () const |
Returns the HashAlgorithm of the object. More... | |
size_t | getOutputLength () const |
Returns the output size of the digest. More... | |
size_t | getOutputLength () const |
Returns the output size of the digest. More... | |
void | update (const void *data, const size_t len) |
Adds data to the digest. More... | |
void | update (const void *data, const size_t len) |
Adds data to the digest. More... | |
Botan implementation of Hash.
OpenSSL implementation of Hash.
Each method is the counterpart of the Hash corresponding method.
Definition at line 46 of file botan_hash.cc.
|
inlineexplicit |
Constructor for specific hash algorithm.
hash_algorithm | The hash algorithm |
Definition at line 52 of file botan_hash.cc.
References isc::cryptolink::btn::getHashAlgorithmName(), isc_throw, and isc::Exception::what().
|
inline |
Destructor.
Definition at line 72 of file botan_hash.cc.
|
inlineexplicit |
Constructor for specific hash algorithm.
hash_algorithm | The hash algorithm |
Definition at line 56 of file openssl_hash.cc.
References isc::cryptolink::ossl::getHashAlgorithm(), and isc_throw.
|
inline |
Destructor.
Definition at line 75 of file openssl_hash.cc.
|
inline |
Calculate the final digest.
See isc::cryptolink::Hash::final() for details.
Definition at line 101 of file botan_hash.cc.
References isc_throw, and isc::Exception::what().
Referenced by isc::cryptolink::Hash::final().
|
inline |
Calculate the final digest.
See isc::cryptolink::Hash::final() for details.
Definition at line 104 of file openssl_hash.cc.
References isc::cryptolink::digest(), and getOutputLength().
|
inline |
Calculate the final digest.
See isc::cryptolink::Hash::final() for details.
Definition at line 117 of file openssl_hash.cc.
References isc::cryptolink::digest(), and getOutputLength().
|
inline |
Calculate the final digest.
See isc::cryptolink::Hash::final() for details.
Definition at line 118 of file botan_hash.cc.
References getOutputLength(), isc_throw, and isc::Exception::what().
|
inline |
Calculate the final digest.
See isc::cryptolink::Hash::final() for details.
Definition at line 130 of file openssl_hash.cc.
References isc::cryptolink::digest(), and getOutputLength().
|
inline |
Calculate the final digest.
See isc::cryptolink::Hash::final() for details.
Definition at line 135 of file botan_hash.cc.
References isc_throw, and isc::Exception::what().
|
inline |
Returns the HashAlgorithm of the object.
Definition at line 75 of file botan_hash.cc.
Referenced by isc::cryptolink::Hash::getHashAlgorithm().
|
inline |
Returns the HashAlgorithm of the object.
Definition at line 83 of file openssl_hash.cc.
|
inline |
Returns the output size of the digest.
Definition at line 82 of file botan_hash.cc.
Referenced by final(), and isc::cryptolink::Hash::getOutputLength().
|
inline |
Returns the output size of the digest.
Definition at line 90 of file openssl_hash.cc.
|
inline |
Adds data to the digest.
See isc::cryptolink::Hash::update() for details.
Definition at line 89 of file botan_hash.cc.
References isc_throw, and isc::Exception::what().
Referenced by isc::cryptolink::Hash::update().
|
inline |
Adds data to the digest.
See isc::cryptolink::Hash::update() for details.
Definition at line 97 of file openssl_hash.cc.