KeccakTools
|
#include <transformations.h>
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) |
Abstract class that represents a transformation from n bits to n bits.
Transformation::Transformation | ( | ) | [inline] |
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] |
virtual void Transformation::operator() | ( | UINT8 * | state | ) | const [pure 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. |
ostream& operator<< | ( | ostream & | a, |
const Transformation & | transformation | ||
) | [friend] |
Method that prints a brief description of the transformation.