#include <Keccak.h>


Public Member Functions | |
| Keccak (unsigned int aRate=1024, unsigned int aCapacity=576, unsigned char aDiversifier=0) | |
| virtual | ~Keccak () |
| string | getDescription () const |
| void | pad () |
Protected Attributes | |
| unsigned char | diversifier |
| Keccak::Keccak | ( | unsigned int | aRate = 1024, |
|
| unsigned int | aCapacity = 576, |
|||
| unsigned char | aDiversifier = 0 | |||
| ) |
The constructor. It dynamically allocates a KeccakF permutation.
| aRate | The desired rate (in bits) of the Keccak sponge function. This must be a multiple of 8. | |
| aCapacity | The desired capacity (in bits) of the Keccak sponge function. The sum of the rate and capacity must be equal to the width of one of the Keccak-f permutations. | |
| aDiversifier | The desired diversifier. This can be any value between 0 and 255. |
| Keccak::~Keccak | ( | ) | [virtual] |
The destructor. It frees the allocated KeccakF permutation.
| string Keccak::getDescription | ( | ) | const [virtual] |
| void Keccak::pad | ( | ) | [virtual] |
unsigned char Keccak::diversifier [protected] |
The 8-bit diversifier.
1.5.6