![]() |
Belle II Software
light-2303-iriomote
|
Simple interface to calculate SHAKE256 hash sum (FIPS 202 draft) with variable size from given data inputs. More...
#include <Hash.h>

Public Types | |
| enum | EHashMode { c_SHAKE128 , c_SHAKE256 } |
| Available hash modes according to FIPS 202 draft. More... | |
Public Member Functions | |
| ShakeHash (EHashMode mode) | |
| constructor initializing the hash structure | |
| ShakeHash (const ShakeHash &)=delete | |
| No copying. | |
| ~ShakeHash () | |
| destructor freeing the memory | |
| void | clear () |
| reinit the hash structure to create a new hash sum | |
| 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 | |
Private Attributes | |
| KeccakHashInstance * | m_instance |
| memory structure to calculate the hash value | |
| EHashMode | m_mode |
| chosen hash mode | |
Simple interface to calculate SHAKE256 hash sum (FIPS 202 draft) with variable size from given data inputs.
| enum EHashMode |