KeccakTools

KeccakF25LUT Class Reference

#include <Keccak-f25LUT.h>

Inheritance diagram for KeccakF25LUT:
Collaboration diagram for KeccakF25LUT:

List of all members.

Public Member Functions

 KeccakF25LUT (unsigned int aNrRounds=0)

Public Attributes

vector< SliceValueLUT

Protected Member Functions

void saveLUT () const
bool retrieveLUT ()
void generateLUT ()

Detailed Description

Class implementing Keccak-f[25] using a look-up table (LUT).


Constructor & Destructor Documentation

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.


Member Function Documentation

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'.


Member Data Documentation

Attribute containing the lookup table for Keccak-f[25]. It is generated by generateLUT() or loaded from disk by retrieveLUT().


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