CatapultServer  v0.5.0.1 (Elephant)
catapult::crypto::KeccakBuilder< TModeTag, THashTag > Class Template Reference

Builder for building a hash. More...

Public Types

using OutputType = utils::ByteArray< THashTag::Byte_Size, THashTag >
 

Public Member Functions

 KeccakBuilder ()
 Creates a builder. More...
 
void update (const RawBuffer &dataBuffer) noexcept
 Updates the state of hash with data inside dataBuffer. More...
 
void update (std::initializer_list< const RawBuffer > buffers) noexcept
 Updates the state of hash with concatenated buffers. More...
 
void final (OutputType &output) noexcept
 Finalize hash calculation. Returns result in output. More...
 

Private Attributes

uint8_t m_hashContext [256]
 

Detailed Description

template<typename TModeTag, typename THashTag>
class catapult::crypto::KeccakBuilder< TModeTag, THashTag >

Builder for building a hash.

Member Typedef Documentation

◆ OutputType

template<typename TModeTag , typename THashTag >
using catapult::crypto::KeccakBuilder< TModeTag, THashTag >::OutputType = utils::ByteArray<THashTag::Byte_Size, THashTag>

Constructor & Destructor Documentation

◆ KeccakBuilder()

template<typename TModeTag , typename THashTag >
catapult::crypto::KeccakBuilder< TModeTag, THashTag >::KeccakBuilder ( )

Creates a builder.

Member Function Documentation

◆ final()

template<typename TModeTag , typename THashTag >
void catapult::crypto::KeccakBuilder< TModeTag, THashTag >::final ( OutputType output)
noexcept

Finalize hash calculation. Returns result in output.

Here is the caller graph for this function:

◆ update() [1/2]

template<typename TModeTag , typename THashTag >
void catapult::crypto::KeccakBuilder< TModeTag, THashTag >::update ( const RawBuffer &  dataBuffer)
noexcept

Updates the state of hash with data inside dataBuffer.

Here is the caller graph for this function:

◆ update() [2/2]

template<typename TModeTag , typename THashTag >
void catapult::crypto::KeccakBuilder< TModeTag, THashTag >::update ( std::initializer_list< const RawBuffer >  buffers)
noexcept

Updates the state of hash with concatenated buffers.

Member Data Documentation

◆ m_hashContext

template<typename TModeTag , typename THashTag >
uint8_t catapult::crypto::KeccakBuilder< TModeTag, THashTag >::m_hashContext[256]
private

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