Fabcoin Core  0.16.2
P2P Digital Currency
Public Types | Public Member Functions | Private Attributes | List of all members
GF2_32 Class Reference

GF(2^32) with polynomial basis. More...

#include <gf2_32.h>

Public Types

typedef word32 Element
 
typedef int RandomizationParameter
 

Public Member Functions

 GF2_32 (word32 modulus=0x0000008D)
 
Element RandomElement (RandomNumberGenerator &rng, int ignored=0) const
 
bool Equal (Element a, Element b) const
 
Element Identity () const
 
Element Add (Element a, Element b) const
 
ElementAccumulate (Element &a, Element b) const
 
Element Inverse (Element a) const
 
Element Subtract (Element a, Element b) const
 
ElementReduce (Element &a, Element b) const
 
Element Double (Element a) const
 
Element MultiplicativeIdentity () const
 
Element Multiply (Element a, Element b) const
 
Element Square (Element a) const
 
bool IsUnit (Element a) const
 
Element MultiplicativeInverse (Element a) const
 
Element Divide (Element a, Element b) const
 

Private Attributes

word32 m_modulus
 

Detailed Description

GF(2^32) with polynomial basis.

Definition at line 16 of file gf2_32.h.

Member Typedef Documentation

Definition at line 19 of file gf2_32.h.

Definition at line 20 of file gf2_32.h.

Constructor & Destructor Documentation

GF2_32::GF2_32 ( word32  modulus = 0x0000008D)
inline

Definition at line 22 of file gf2_32.h.

Member Function Documentation

Element& GF2_32::Accumulate ( Element a,
Element  b 
) const
inline

Definition at line 36 of file gf2_32.h.

Element GF2_32::Add ( Element  a,
Element  b 
) const
inline

Definition at line 33 of file gf2_32.h.

Element GF2_32::Divide ( Element  a,
Element  b 
) const
inline

Definition at line 64 of file gf2_32.h.

Here is the call graph for this function:

Element GF2_32::Double ( Element  a) const
inline

Definition at line 48 of file gf2_32.h.

bool GF2_32::Equal ( Element  a,
Element  b 
) const
inline

Definition at line 27 of file gf2_32.h.

Element GF2_32::Identity ( ) const
inline

Definition at line 30 of file gf2_32.h.

Element GF2_32::Inverse ( Element  a) const
inline

Definition at line 39 of file gf2_32.h.

bool GF2_32::IsUnit ( Element  a) const
inline

Definition at line 59 of file gf2_32.h.

Element GF2_32::MultiplicativeIdentity ( ) const
inline

Definition at line 51 of file gf2_32.h.

Here is the call graph for this function:

GF2_32::Element GF2_32::MultiplicativeInverse ( Element  a) const

Definition at line 46 of file gf2_32.cpp.

Here is the call graph for this function:

GF2_32::Element GF2_32::Multiply ( Element  a,
Element  b 
) const

Definition at line 9 of file gf2_32.cpp.

Here is the call graph for this function:

Element GF2_32::RandomElement ( RandomNumberGenerator rng,
int  ignored = 0 
) const
inline

Definition at line 24 of file gf2_32.h.

Here is the call graph for this function:

Element& GF2_32::Reduce ( Element a,
Element  b 
) const
inline

Definition at line 45 of file gf2_32.h.

Element GF2_32::Square ( Element  a) const
inline

Definition at line 56 of file gf2_32.h.

Here is the call graph for this function:

Element GF2_32::Subtract ( Element  a,
Element  b 
) const
inline

Definition at line 42 of file gf2_32.h.

Member Data Documentation

word32 GF2_32::m_modulus
private

Definition at line 68 of file gf2_32.h.


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