KeccakTools
|
#include <transformations.h>
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 |
Class that implements the simplest possible permutation: the identity.
Identity::Identity | ( | unsigned int | aWidth | ) | [inline] |
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.
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.
virtual void Identity::operator() | ( | UINT8 * | state | ) | const [inline, virtual] |
Abstract method that applies the transformation onto the parameter state.
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.
unsigned int Identity::width [protected] |