Fabcoin Core
0.16.2
P2P Digital Currency
|
GF(256) with polynomial basis. More...
#include <gf256.h>
Public Types | |
typedef byte | Element |
typedef int | RandomizationParameter |
Public Member Functions | |
GF256 (byte modulus) | |
Element | RandomElement (RandomNumberGenerator &rng, int ignored=0) const |
bool | Equal (Element a, Element b) const |
Element | Zero () 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 | One () 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 | |
word | m_modulus |
typedef byte GF256::Element |
typedef int GF256::RandomizationParameter |
GF256::Element GF256::MultiplicativeInverse | ( | Element | a | ) | const |
GF256::Element GF256::Multiply | ( | Element | a, |
Element | b | ||
) | const |
|
inline |
|
inline |