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));}
GF(256) with polynomial basis.
Interface for random number generators.
virtual byte GenerateByte()
Generate new random byte and return it.
word64 word
Full word used for multiprecision integer arithmetic.
Abstract base classes that provide a uniform interface to this library.
Utility functions for the Crypto++ library.
Crypto++ library namespace.