41 void update(
int n,
unsigned char* buff);
46 void getHash(
unsigned char* buff);
48 std::vector<unsigned char>
getHash();
74 void update(
int n,
unsigned char* buff);
76 void getHash(
int n,
unsigned char* buff);
Simple interface to calculate SHA3 hash sum (FIPS 202 draft) with fixed size from given data inputs.
EHashMode m_mode
chosen hash mode
SHA3Hash(const SHA3Hash &)=delete
No copying.
KeccakHashInstance * m_instance
memory structure to calculate the hash value
EHashMode
Available hash modes according to FIPS 202 draft.
@ c_SHA3_512
384bit output size
@ c_SHA3_384
256bit output size
@ c_SHA3_256
224bit output size
Simple interface to calculate SHAKE256 hash sum (FIPS 202 draft) with variable size from given data i...
EHashMode m_mode
chosen hash mode
KeccakHashInstance * m_instance
memory structure to calculate the hash value
EHashMode
Available hash modes according to FIPS 202 draft.
@ c_SHAKE128
variable hash size with up to 128 bit collision resistance
@ c_SHAKE256
variable hash size with up to 256 bit collision resistance
ShakeHash(const ShakeHash &)=delete
No copying.
~SHA3Hash()
destructor freeing the memory
void update(int n, unsigned char *buff)
update the internal state by adding n bytes of data from buff
void getHash(int n, unsigned char *buff)
obtain the hash value with a length of n bytes into buff
SHA3Hash(EHashMode length)
Constructor initializing the hash structure with a given output size.
~ShakeHash()
destructor freeing the memory
void clear()
reinit the hash structure to create a new hash sum
std::vector< unsigned char > getHash()
obtain the hash value as a vector of unsigned char
ShakeHash(EHashMode mode)
constructor initializing the hash structure
Abstract base class for different kinds of events.
Since we cannot forward declare the memory structure directly due to some typedeffing we inherit from...