Kea 2.7.5
isc::cryptolink::HashImpl Class Reference

Botan implementation of Hash. More...

Public Member Functions

 HashImpl (const HashAlgorithm hash_algorithm)
 Constructor for specific hash algorithm.
 
 HashImpl (const HashAlgorithm hash_algorithm)
 Constructor for specific hash algorithm.
 
 ~HashImpl ()
 Destructor.
 
 ~HashImpl ()=default
 Destructor.
 
void final (isc::util::OutputBuffer &result, size_t len)
 Calculate the final digest.
 
void final (isc::util::OutputBuffer &result, size_t len)
 Calculate the final digest.
 
std::vector< uint8_t > final (size_t len)
 Calculate the final digest.
 
std::vector< uint8_t > final (size_t len)
 Calculate the final digest.
 
void final (void *result, size_t len)
 Calculate the final digest.
 
void final (void *result, size_t len)
 Calculate the final digest.
 
HashAlgorithm getHashAlgorithm () const
 Returns the HashAlgorithm of the object.
 
HashAlgorithm getHashAlgorithm () const
 Returns the HashAlgorithm of the object.
 
size_t getOutputLength () const
 Returns the output size of the digest.
 
size_t getOutputLength () const
 Returns the output size of the digest.
 
void update (const void *data, const size_t len)
 Adds data to the digest.
 
void update (const void *data, const size_t len)
 Adds data to the digest.
 

Detailed Description

Botan implementation of Hash.

OpenSSL implementation of Hash.

Each method is the counterpart of the Hash corresponding method.

Definition at line 45 of file botan_hash.cc.

Constructor & Destructor Documentation

◆ HashImpl() [1/2]

isc::cryptolink::HashImpl::HashImpl ( const HashAlgorithm hash_algorithm)
inlineexplicit

Constructor for specific hash algorithm.

Parameters
hash_algorithmThe hash algorithm

Definition at line 51 of file botan_hash.cc.

References isc::cryptolink::btn::getHashAlgorithmName(), isc_throw, and isc::Exception::what().

+ Here is the call graph for this function:

◆ ~HashImpl() [1/2]

isc::cryptolink::HashImpl::~HashImpl ( )
default

Destructor.

◆ HashImpl() [2/2]

isc::cryptolink::HashImpl::HashImpl ( const HashAlgorithm hash_algorithm)
inlineexplicit

Constructor for specific hash algorithm.

Parameters
hash_algorithmThe hash algorithm

Definition at line 56 of file openssl_hash.cc.

References isc::cryptolink::ossl::getHashAlgorithm(), and isc_throw.

+ Here is the call graph for this function:

◆ ~HashImpl() [2/2]

isc::cryptolink::HashImpl::~HashImpl ( )
inline

Destructor.

Definition at line 75 of file openssl_hash.cc.

Member Function Documentation

◆ final() [1/6]

void isc::cryptolink::HashImpl::final ( isc::util::OutputBuffer & result,
size_t len )
inline

Calculate the final digest.

See isc::cryptolink::Hash::final() for details.

Definition at line 97 of file botan_hash.cc.

References isc_throw, and isc::Exception::what().

Referenced by isc::cryptolink::Hash::final(), isc::cryptolink::Hash::final(), and isc::cryptolink::Hash::final().

+ Here is the call graph for this function:

◆ final() [2/6]

void isc::cryptolink::HashImpl::final ( isc::util::OutputBuffer & result,
size_t len )
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().

+ Here is the call graph for this function:

◆ final() [3/6]

std::vector< uint8_t > isc::cryptolink::HashImpl::final ( size_t len)
inline

Calculate the final digest.

See isc::cryptolink::Hash::final() for details.

Definition at line 131 of file botan_hash.cc.

References isc_throw, and isc::Exception::what().

+ Here is the call graph for this function:

◆ final() [4/6]

std::vector< uint8_t > isc::cryptolink::HashImpl::final ( size_t len)
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().

+ Here is the call graph for this function:

◆ final() [5/6]

void isc::cryptolink::HashImpl::final ( void * result,
size_t len )
inline

Calculate the final digest.

See isc::cryptolink::Hash::final() for details.

Definition at line 114 of file botan_hash.cc.

References getOutputLength(), isc_throw, and isc::Exception::what().

+ Here is the call graph for this function:

◆ final() [6/6]

void isc::cryptolink::HashImpl::final ( void * result,
size_t len )
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().

+ Here is the call graph for this function:

◆ getHashAlgorithm() [1/2]

HashAlgorithm isc::cryptolink::HashImpl::getHashAlgorithm ( ) const
inline

Returns the HashAlgorithm of the object.

Definition at line 71 of file botan_hash.cc.

Referenced by isc::cryptolink::Hash::getHashAlgorithm().

◆ getHashAlgorithm() [2/2]

HashAlgorithm isc::cryptolink::HashImpl::getHashAlgorithm ( ) const
inline

Returns the HashAlgorithm of the object.

Definition at line 83 of file openssl_hash.cc.

◆ getOutputLength() [1/2]

size_t isc::cryptolink::HashImpl::getOutputLength ( ) const
inline

Returns the output size of the digest.

Returns
output size of the digest

Definition at line 78 of file botan_hash.cc.

Referenced by final(), final(), final(), and isc::cryptolink::Hash::getOutputLength().

◆ getOutputLength() [2/2]

size_t isc::cryptolink::HashImpl::getOutputLength ( ) const
inline

Returns the output size of the digest.

Returns
output size of the digest

Definition at line 90 of file openssl_hash.cc.

◆ update() [1/2]

void isc::cryptolink::HashImpl::update ( const void * data,
const size_t len )
inline

Adds data to the digest.

See isc::cryptolink::Hash::update() for details.

Definition at line 85 of file botan_hash.cc.

References isc_throw, and isc::Exception::what().

Referenced by isc::cryptolink::Hash::update().

+ Here is the call graph for this function:

◆ update() [2/2]

void isc::cryptolink::HashImpl::update ( const void * data,
const size_t len )
inline

Adds data to the digest.

See isc::cryptolink::Hash::update() for details.

Definition at line 97 of file openssl_hash.cc.


The documentation for this class was generated from the following files: