Transformation Class Reference

#include <transformations.h>

Inheritance diagram for Transformation:

Inheritance graph
[legend]

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

Friends

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

Parameters:
state A 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.

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

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

Implemented in KeccakF, KeccakFDCLC, 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:

Generated on Thu Jun 17 18:20:51 2010 for KeccakTools by  doxygen 1.5.6