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));}