KeccakTools

ReducedRoundKeccak Class Reference

#include <Keccak.h>

Inheritance diagram for ReducedRoundKeccak:
Collaboration diagram for ReducedRoundKeccak:

List of all members.

Public Member Functions

 ReducedRoundKeccak (unsigned int aRate, unsigned int aCapacity, unsigned int aNrRounds)
virtual ~ReducedRoundKeccak ()
string getDescription () const

Protected Attributes

unsigned int nrRounds

Detailed Description

Class that implements the (potentially) reduced-round Keccak sponge function family.


Constructor & Destructor Documentation

ReducedRoundKeccak::ReducedRoundKeccak ( unsigned int  aRate,
unsigned int  aCapacity,
unsigned int  aNrRounds 
)

The constructor. It dynamically allocates a KeccakF permutation.

Parameters:
aRateThe desired rate (in bits) of the Keccak sponge function.
aCapacityThe 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.
aNrRoundsThe desired number of rounds used in Keccak-f.
ReducedRoundKeccak::~ReducedRoundKeccak ( ) [virtual]

The destructor. It frees the allocated KeccakF permutation.


Member Function Documentation

string ReducedRoundKeccak::getDescription ( ) const [virtual]

Method that returns a string describing the instance of the Keccak sponge function.

Reimplemented from Sponge.


Member Data Documentation

unsigned int ReducedRoundKeccak::nrRounds [protected]

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