6 #ifndef CRYPTOPP_GF256_H 7 #define CRYPTOPP_GF256_H 19 typedef int RandomizationParameter;
21 GF256(byte modulus) : m_modulus(modulus) {}
26 bool Equal(Element a, Element b)
const 32 Element Add(Element a, Element b)
const 35 Element& Accumulate(Element &a, Element b)
const 38 Element Inverse(Element a)
const 41 Element Subtract(Element a, Element b)
const 44 Element& Reduce(Element &a, Element b)
const 47 Element Double(Element a)
const 48 {CRYPTOPP_UNUSED(a);
return 0;}
53 Element Multiply(Element a, Element b)
const;
55 Element
Square(Element a)
const 56 {
return Multiply(a, a);}
58 bool IsUnit(Element a)
const 61 Element MultiplicativeInverse(Element a)
const;
63 Element Divide(Element a, Element b)
const 64 {
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.