KeccakTools

Identity Class Reference

#include <transformations.h>

Inheritance diagram for Identity:
Collaboration diagram for Identity:

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 string Identity::getDescription ( ) const [inline, virtual]

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

Implements Transformation.

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::inverse ( UINT8 state) const [inline, virtual]

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

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

Implements Permutation.

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

Abstract method that applies the transformation onto the parameter state.

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

Implements Transformation.


Member Data Documentation

unsigned int Identity::width [protected]

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