Transformation Class Reference

#include <transformations.h>

Inheritance diagram for Transformation:

List of all members.

Public Member Functions

 Transformation ()
virtual unsigned int getWidth () const =0
virtual void operator() (UINT8 *state) const =0
virtual string getDescription () const =0


ostream & operator<< (ostream &a, const Transformation &transformation)

Detailed Description

Abstract class that represents a transformation from n bits to n bits.

Constructor & Destructor Documentation

Transformation::Transformation ( ) [inline]

Member Function Documentation

virtual string Transformation::getDescription ( ) const [pure virtual]

Abstract method that returns a string with a description of itself.

Implemented in KeccakF, KeccakFDCLC, and Identity.

virtual unsigned int Transformation::getWidth ( ) const [pure virtual]

Abstract method that returns the number of bits of its domain and range.

Implemented in KeccakF, and Identity.

virtual void Transformation::operator() ( UINT8 state) const [pure virtual]

Abstract method that applies the transformation onto the parameter state.

stateA buffer on which to apply the transformation. The state must have a size of at least ceil(getWidth()/8.0) bytes.

Implemented in KeccakF, and Identity.

Friends And Related Function Documentation

ostream& operator<< ( ostream &  a,
const Transformation transformation 
) [friend]

Method that prints a brief description of the transformation.

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