Crypto++
Public Types | Public Member Functions | Protected Attributes | List of all members
GFP2_ONB< F > Class Template Reference

GF(p^2), optimal normal basis. More...

#include <xtr.h>

Inheritance diagram for GFP2_ONB< F >:
AbstractRing< GFP2Element > AbstractGroup< GFP2Element >

Public Types

typedef F BaseField
 
typedef GFP2Element Element
 

Public Member Functions

 GFP2_ONB (const Integer &p)
 
const IntegerGetModulus () const
 
GFP2Element ConvertIn (const Integer &a) const
 
GFP2Element ConvertIn (const GFP2Element &a) const
 
GFP2Element ConvertOut (const GFP2Element &a) const
 
bool Equal (const GFP2Element &a, const GFP2Element &b) const
 
const ElementIdentity () const
 
const ElementAdd (const Element &a, const Element &b) const
 
const ElementInverse (const Element &a) const
 
const ElementDouble (const Element &a) const
 
const ElementSubtract (const Element &a, const Element &b) const
 
ElementAccumulate (Element &a, const Element &b) const
 
ElementReduce (Element &a, const Element &b) const
 
bool IsUnit (const Element &a) const
 
const ElementMultiplicativeIdentity () const
 
const ElementMultiply (const Element &a, const Element &b) const
 
const ElementMultiplicativeInverse (const Element &a) const
 
const ElementSquare (const Element &a) const
 
Element Exponentiate (const Element &a, const Integer &e) const
 
const ElementPthPower (const Element &a) const
 
void RaiseToPthPower (Element &a) const
 
const ElementSpecialOperation1 (const Element &a) const
 
const ElementSpecialOperation2 (const Element &x, const Element &y, const Element &z) const
 
virtual const ElementDivide (const Element &a, const Element &b) const
 
virtual Element CascadeExponentiate (const Element &x, const Integer &e1, const Element &y, const Integer &e2) const
 
virtual void SimultaneousExponentiate (Element *results, const Element &base, const Integer *exponents, unsigned int exponentsCount) const
 
virtual const AbstractGroup
< GFP2Element > & 
MultiplicativeGroup () const
 
virtual bool InversionIsFast () const
 
virtual Element ScalarMultiply (const Element &a, const Integer &e) const
 
virtual Element CascadeScalarMultiply (const Element &x, const Integer &e1, const Element &y, const Integer &e2) const
 
virtual void SimultaneousMultiply (Element *results, const Element &base, const Integer *exponents, unsigned int exponentsCount) const
 

Protected Attributes

BaseField modp
 
GFP2Element result
 
Integer t
 

Detailed Description

template<class F>
class GFP2_ONB< F >

GF(p^2), optimal normal basis.

Definition at line 43 of file xtr.h.


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