KeccakTools

AffineSpaceOfRows Class Reference

#include <Keccak-fAffineBases.h>

List of all members.

Public Member Functions

 AffineSpaceOfRows ()
void addGenerator (RowValue generator)
void setOffset (RowValue anOffset)
void display (ostream &fout) const
unsigned int getWeight () const

Public Attributes

vector< RowValuegenerators
RowValue offset

Detailed Description

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.


Constructor & Destructor Documentation

AffineSpaceOfRows::AffineSpaceOfRows ( ) [inline]

The constructor creates an affine space with a single element: 0.


Member Function Documentation

void AffineSpaceOfRows::addGenerator ( RowValue  generator) [inline]

This method adds a generator to the set of generators.

Parameters:
generatorThe generator to add
void AffineSpaceOfRows::display ( ostream &  fout) const

This method displays the offset and generators.

Parameters:
foutThe 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.

Returns:
The number of generators (propagation weight).
void AffineSpaceOfRows::setOffset ( RowValue  anOffset) [inline]

This method sets the offset of the affine space.

Parameters:
anOffsetThe new offset value.

Member Data Documentation

The generators.


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