KeccakTools
|
#include <Keccak-f25LUT.h>
Public Member Functions | |
KeccakF25LUT (unsigned int aNrRounds=0) | |
Public Attributes | |
vector< SliceValue > | LUT |
Protected Member Functions | |
void | saveLUT () const |
bool | retrieveLUT () |
void | generateLUT () |
Class implementing Keccak-f[25] using a look-up table (LUT).
KeccakF25LUT::KeccakF25LUT | ( | unsigned int | aNrRounds = 0 | ) |
The constructor, for which the width is fixed to 25. It generates a lookup table for the Keccak-f[25] permutation with a given number of rounds. When done, the lookup table is saved to disk. If the lookup table exists on disk, it is retrieved instead of being generated. See KeccakF() for more details.
void KeccakF25LUT::generateLUT | ( | ) | [protected] |
Method that generates the actual lookup table.
bool KeccakF25LUT::retrieveLUT | ( | ) | [protected] |
Method that retrieves the lookup table from a file with extension '.LUT'.
void KeccakF25LUT::saveLUT | ( | ) | const [protected] |
Method that saves the lookup table to a file with extension '.LUT'.
vector<SliceValue> KeccakF25LUT::LUT |
Attribute containing the lookup table for Keccak-f[25]. It is generated by generateLUT() or loaded from disk by retrieveLUT().