Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

GF2NP Class Reference

#include <gf2n.h>

Inheritance diagram for GF2NP:

QuotientRing< EuclideanDomainOf< PolynomialMod2 > > GF2NPP GF2NT List of all members.

Detailed Description

GF(2^n) with Polynomial Basis.

Definition at line 281 of file gf2n.h.

Public Types

typedef EuclideanDomainOf<
PolynomialMod2
EuclideanDomain
typedef EuclideanDomainOf<
PolynomialMod2 >::Element 
Element

Public Member Functions

 GF2NP (const PolynomialMod2 &modulus)
virtual GF2NPClone () const
virtual void DEREncode (BufferedTransformation &bt) const
void DEREncodeElement (BufferedTransformation &out, const Element &a) const
void BERDecodeElement (BufferedTransformation &in, Element &a) const
bool Equal (const Element &a, const Element &b) const
bool IsUnit (const Element &a) const
unsigned int MaxElementBitLength () const
unsigned int MaxElementByteLength () const
Element SquareRoot (const Element &a) const
Element HalfTrace (const Element &a) const
Element SolveQuadraticEquation (const Element &a) const
const EuclideanDomain & GetDomain () const
const Element & GetModulus () const
const Element & Identity () const
const Element & Add (const Element &a, const Element &b) const
Element & Accumulate (Element &a, const Element &b) const
const Element & Inverse (const Element &a) const
const Element & Subtract (const Element &a, const Element &b) const
Element & Reduce (Element &a, const Element &b) const
const Element & Double (const Element &a) const
const Element & MultiplicativeIdentity () const
const Element & Multiply (const Element &a, const Element &b) const
const Element & Square (const Element &a) const
const Element & MultiplicativeInverse (const Element &a) const
bool operator== (const QuotientRing< EuclideanDomainOf< PolynomialMod2 > > &rhs) const

Protected Attributes

unsigned int m
EuclideanDomain m_domain
Element m_modulus


The documentation for this class was generated from the following files:
Generated on Fri Aug 27 14:08:31 2004 for Crypto++ by doxygen 1.3.8