1 #ifndef CRYPTOPP_GF256_H 2 #define CRYPTOPP_GF256_H 14 typedef int RandomizationParameter;
16 GF256(byte modulus) : m_modulus(modulus) {}
21 bool Equal(Element a, Element b)
const 27 Element Add(Element a, Element b)
const 30 Element& Accumulate(Element &a, Element b)
const 33 Element Inverse(Element a)
const 36 Element Subtract(Element a, Element b)
const 39 Element& Reduce(Element &a, Element b)
const 42 Element Double(Element a)
const 43 {CRYPTOPP_UNUSED(a);
return 0;}
48 Element Multiply(Element a, Element b)
const;
50 Element
Square(Element a)
const 51 {
return Multiply(a, a);}
53 bool IsUnit(Element a)
const 56 Element MultiplicativeInverse(Element a)
const;
58 Element Divide(Element a, Element b)
const 59 {
return Multiply(a, MultiplicativeInverse(b));}
Utility functions for the Crypto++ library.
Abstract base classes that provide a uniform interface to this library.
Interface for random number generators.
GF(256) with polynomial basis.
virtual byte GenerateByte()
Generate new random byte and return it.
Crypto++ library namespace.