Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

GF256 Class Reference

GF(256) with polynomial basis. More...

#include <gf256.h>

List of all members.

Public Types

typedef byte Element
typedef int RandomizationParameter

Public Methods

 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


Detailed Description

GF(256) with polynomial basis.

Definition at line 9 of file gf256.h.


Member Typedef Documentation

typedef byte GF256::Element
 

Definition at line 12 of file gf256.h.

typedef int GF256::RandomizationParameter
 

Definition at line 13 of file gf256.h.


Constructor & Destructor Documentation

GF256::GF256 ( byte modulus ) [inline]
 

Definition at line 15 of file gf256.h.


Member Function Documentation

Element & GF256::Accumulate ( Element & a,
Element b ) const [inline]
 

Definition at line 29 of file gf256.h.

Element GF256::Add ( Element a,
Element b ) const [inline]
 

Definition at line 26 of file gf256.h.

Element GF256::Divide ( Element a,
Element b ) const [inline]
 

Definition at line 57 of file gf256.h.

Element GF256::Double ( Element a ) const [inline]
 

Definition at line 41 of file gf256.h.

bool GF256::Equal ( Element a,
Element b ) const [inline]
 

Definition at line 20 of file gf256.h.

Element GF256::Inverse ( Element a ) const [inline]
 

Definition at line 32 of file gf256.h.

bool GF256::IsUnit ( Element a ) const [inline]
 

Definition at line 52 of file gf256.h.

GF256::Element GF256::MultiplicativeInverse ( Element a ) const
 

Definition at line 26 of file gf256.cpp.

GF256::Element GF256::Multiply ( Element a,
Element b ) const
 

Definition at line 8 of file gf256.cpp.

Element GF256::One ( ) const [inline]
 

Definition at line 44 of file gf256.h.

Element GF256::RandomElement ( RandomNumberGenerator & rng,
int ignored = 0 ) const [inline]
 

Definition at line 17 of file gf256.h.

Element & GF256::Reduce ( Element & a,
Element b ) const [inline]
 

Definition at line 38 of file gf256.h.

Element GF256::Square ( Element a ) const [inline]
 

Definition at line 49 of file gf256.h.

Element GF256::Subtract ( Element a,
Element b ) const [inline]
 

Definition at line 35 of file gf256.h.

Element GF256::Zero ( ) const [inline]
 

Definition at line 23 of file gf256.h.


The documentation for this class was generated from the following files:
Generated at Mon Jan 15 01:16:50 2001 for Crypto++ by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000