![]() |
Fabcoin Core
0.16.2
P2P Digital Currency
|
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 |
| Element & | Accumulate (Element &a, Element b) const |
| Element | Inverse (Element a) const |
| Element | Subtract (Element a, Element b) const |
| Element & | Reduce (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 |
| typedef word32 GF2_32::Element |
| typedef int GF2_32::RandomizationParameter |
|
inline |
| GF2_32::Element GF2_32::MultiplicativeInverse | ( | Element | a | ) | const |
| GF2_32::Element GF2_32::Multiply | ( | Element | a, |
| Element | b | ||
| ) | const |
|
inline |
1.8.11