KeccakTools
|
#include <Keccak-fAffineBases.h>
Public Member Functions | |
AffineSpaceOfRows () | |
void | addGenerator (RowValue generator) |
void | setOffset (RowValue anOffset) |
void | display (ostream &fout) const |
unsigned int | getWeight () const |
Public Attributes | |
vector< RowValue > | generators |
RowValue | offset |
Like ListOfRowPatterns, this class lists the row patterns (differences or linear masks) for a given row input pattern, but in the form of an affine space. The members of the list are determined by offset plus any linear combination of the generators.
AffineSpaceOfRows::AffineSpaceOfRows | ( | ) | [inline] |
The constructor creates an affine space with a single element: 0.
void AffineSpaceOfRows::addGenerator | ( | RowValue | generator | ) | [inline] |
This method adds a generator to the set of generators.
generator | The generator to add |
void AffineSpaceOfRows::display | ( | ostream & | fout | ) | const |
This method displays the offset and generators.
fout | The stream to display to. |
unsigned int AffineSpaceOfRows::getWeight | ( | ) | const [inline] |
This method returns the number of generators. After they are set, the number of generators happens to be equal to the propagation weight of the input pattern whose output space is represented by this affine space.
void AffineSpaceOfRows::setOffset | ( | RowValue | anOffset | ) | [inline] |
This method sets the offset of the affine space.
anOffset | The new offset value. |
The generators.
The offset.