Identity Class Reference

#include <transformations.h>

Inheritance diagram for Identity:

Inheritance graph
[legend]
Collaboration diagram for Identity:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Identity (unsigned int aWidth)
virtual unsigned int getWidth () const
virtual void operator() (UINT8 *state) const
virtual string getDescription () const
virtual void inverse (UINT8 *state) const

Protected Attributes

unsigned int width


Detailed Description

Class that implements the simplest possible permutation: the identity.

Constructor & Destructor Documentation

Identity::Identity ( unsigned int  aWidth  )  [inline]


Member Function Documentation

virtual unsigned int Identity::getWidth (  )  const [inline, virtual]

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

Implements Transformation.

virtual void Identity::operator() ( UINT8 state  )  const [inline, 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.

Implements Transformation.

virtual string Identity::getDescription (  )  const [inline, virtual]

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

Implements Transformation.

virtual void Identity::inverse ( UINT8 state  )  const [inline, virtual]

Abstract method that applies the inverse of the permutation onto the parameter state.

Parameters:
state A buffer on which to apply the inverse permutation. The state must have a size of at least ceil(getWidth()/8.0) bytes.

Implements Permutation.


Member Data Documentation

unsigned int Identity::width [protected]


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

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