Security Scol plugin
Classes | Functions | Variables
gf2n.h File Reference

Classes and functions for schemes over GF(2^n) More...

#include "cryptlib.h"
#include "secblock.h"
#include "algebra.h"
#include "misc.h"
#include "asn.h"
#include <iosfwd>

Go to the source code of this file.

Classes

class  PolynomialMod2
 Polynomial with Coefficients in GF(2) More...
 
class  PolynomialMod2::DivideByZero
 Exception thrown when divide by zero is encountered. More...
 
class  GF2NP
 GF(2^n) with Polynomial Basis. More...
 
class  GF2NT
 GF(2^n) with Trinomial Basis. More...
 
class  GF2NT233
 GF(2^n) for b233 and k233. More...
 
class  GF2NPP
 GF(2^n) with Pentanomial Basis. More...
 

Functions

bool operator== (const CryptoPP::PolynomialMod2 &a, const CryptoPP::PolynomialMod2 &b)
 
bool operator!= (const CryptoPP::PolynomialMod2 &a, const CryptoPP::PolynomialMod2 &b)
 
bool operator> (const CryptoPP::PolynomialMod2 &a, const CryptoPP::PolynomialMod2 &b)
 compares degree
 
bool operator>= (const CryptoPP::PolynomialMod2 &a, const CryptoPP::PolynomialMod2 &b)
 compares degree
 
bool operator< (const CryptoPP::PolynomialMod2 &a, const CryptoPP::PolynomialMod2 &b)
 compares degree
 
bool operator<= (const CryptoPP::PolynomialMod2 &a, const CryptoPP::PolynomialMod2 &b)
 compares degree
 
CryptoPP::PolynomialMod2 operator& (const CryptoPP::PolynomialMod2 &a, const CryptoPP::PolynomialMod2 &b)
 
CryptoPP::PolynomialMod2 operator^ (const CryptoPP::PolynomialMod2 &a, const CryptoPP::PolynomialMod2 &b)
 
CryptoPP::PolynomialMod2 operator+ (const CryptoPP::PolynomialMod2 &a, const CryptoPP::PolynomialMod2 &b)
 
CryptoPP::PolynomialMod2 operator- (const CryptoPP::PolynomialMod2 &a, const CryptoPP::PolynomialMod2 &b)
 
CryptoPP::PolynomialMod2 operator* (const CryptoPP::PolynomialMod2 &a, const CryptoPP::PolynomialMod2 &b)
 
CryptoPP::PolynomialMod2 operator/ (const CryptoPP::PolynomialMod2 &a, const CryptoPP::PolynomialMod2 &b)
 
CryptoPP::PolynomialMod2 operator% (const CryptoPP::PolynomialMod2 &a, const CryptoPP::PolynomialMod2 &b)
 
CRYPTOPP_DLL GF2NP *CRYPTOPP_API BERDecodeGF2NP (BufferedTransformation &bt)
 
template<>
NAMESPACE_END void swap (CryptoPP::PolynomialMod2 &a, CryptoPP::PolynomialMod2 &b)
 

Variables

CRYPTOPP_DLL_TEMPLATE_CLASS AbstractGroup< PolynomialMod2 >
 
CRYPTOPP_DLL_TEMPLATE_CLASS AbstractRing< PolynomialMod2 >
 
CRYPTOPP_DLL_TEMPLATE_CLASS AbstractEuclideanDomain< PolynomialMod2 >
 
CRYPTOPP_DLL_TEMPLATE_CLASS EuclideanDomainOf< PolynomialMod2 >
 
CRYPTOPP_DLL_TEMPLATE_CLASS QuotientRing< EuclideanDomainOf< PolynomialMod2 > >
 

Detailed Description

Classes and functions for schemes over GF(2^n)

Definition in file gf2n.h.

Function Documentation

◆ BERDecodeGF2NP()

CRYPTOPP_DLL GF2NP *CRYPTOPP_API BERDecodeGF2NP ( BufferedTransformation bt)

Definition at line 924 of file gf2n.cpp.

◆ operator!=()

bool operator!= ( const CryptoPP::PolynomialMod2 &  a,
const CryptoPP::PolynomialMod2 &  b 
)
inline

Definition at line 258 of file gf2n.h.

◆ operator%()

CryptoPP::PolynomialMod2 operator% ( const CryptoPP::PolynomialMod2 &  a,
const CryptoPP::PolynomialMod2 &  b 
)
inline

Definition at line 285 of file gf2n.h.

◆ operator&()

CryptoPP::PolynomialMod2 operator& ( const CryptoPP::PolynomialMod2 &  a,
const CryptoPP::PolynomialMod2 &  b 
)
inline

Definition at line 273 of file gf2n.h.

◆ operator*()

CryptoPP::PolynomialMod2 operator* ( const CryptoPP::PolynomialMod2 &  a,
const CryptoPP::PolynomialMod2 &  b 
)
inline

Definition at line 281 of file gf2n.h.

◆ operator+()

CryptoPP::PolynomialMod2 operator+ ( const CryptoPP::PolynomialMod2 &  a,
const CryptoPP::PolynomialMod2 &  b 
)
inline

Definition at line 277 of file gf2n.h.

◆ operator-()

CryptoPP::PolynomialMod2 operator- ( const CryptoPP::PolynomialMod2 &  a,
const CryptoPP::PolynomialMod2 &  b 
)
inline

Definition at line 279 of file gf2n.h.

◆ operator/()

CryptoPP::PolynomialMod2 operator/ ( const CryptoPP::PolynomialMod2 &  a,
const CryptoPP::PolynomialMod2 &  b 
)
inline

Definition at line 283 of file gf2n.h.

◆ operator<()

bool operator< ( const CryptoPP::PolynomialMod2 &  a,
const CryptoPP::PolynomialMod2 &  b 
)
inline

compares degree

Definition at line 267 of file gf2n.h.

◆ operator<=()

bool operator<= ( const CryptoPP::PolynomialMod2 &  a,
const CryptoPP::PolynomialMod2 &  b 
)
inline

compares degree

Definition at line 270 of file gf2n.h.

◆ operator==()

bool operator== ( const CryptoPP::PolynomialMod2 &  a,
const CryptoPP::PolynomialMod2 &  b 
)
inline

Definition at line 255 of file gf2n.h.

◆ operator>()

bool operator> ( const CryptoPP::PolynomialMod2 &  a,
const CryptoPP::PolynomialMod2 &  b 
)
inline

compares degree

Definition at line 261 of file gf2n.h.

◆ operator>=()

bool operator>= ( const CryptoPP::PolynomialMod2 &  a,
const CryptoPP::PolynomialMod2 &  b 
)
inline

compares degree

Definition at line 264 of file gf2n.h.

◆ operator^()

CryptoPP::PolynomialMod2 operator^ ( const CryptoPP::PolynomialMod2 &  a,
const CryptoPP::PolynomialMod2 &  b 
)
inline

Definition at line 275 of file gf2n.h.

◆ swap()

template<>
NAMESPACE_END void swap ( CryptoPP::PolynomialMod2 &  a,
CryptoPP::PolynomialMod2 &  b 
)
inline

Definition at line 393 of file gf2n.h.

Variable Documentation

◆ AbstractEuclideanDomain< PolynomialMod2 >

CRYPTOPP_DLL_TEMPLATE_CLASS AbstractEuclideanDomain< PolynomialMod2 >

Definition at line 291 of file gf2n.h.

◆ AbstractGroup< PolynomialMod2 >

CRYPTOPP_DLL_TEMPLATE_CLASS AbstractGroup< PolynomialMod2 >

Definition at line 289 of file gf2n.h.

◆ AbstractRing< PolynomialMod2 >

CRYPTOPP_DLL_TEMPLATE_CLASS AbstractRing< PolynomialMod2 >

Definition at line 290 of file gf2n.h.

◆ EuclideanDomainOf< PolynomialMod2 >

CRYPTOPP_DLL_TEMPLATE_CLASS EuclideanDomainOf< PolynomialMod2 >

Definition at line 292 of file gf2n.h.

◆ QuotientRing< EuclideanDomainOf< PolynomialMod2 > >

CRYPTOPP_DLL_TEMPLATE_CLASS QuotientRing< EuclideanDomainOf< PolynomialMod2 > >

Definition at line 293 of file gf2n.h.