MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TaoCrypt::ModularArithmetic Class Reference
Inheritance diagram for TaoCrypt::ModularArithmetic:
Collaboration diagram for TaoCrypt::ModularArithmetic:

Public Types

typedef int RandomizationParameter
typedef Integer Element
- Public Types inherited from TaoCrypt::AbstractRing
typedef Integer Element
- Public Types inherited from TaoCrypt::AbstractGroup
typedef Integer Element

Public Member Functions

 ModularArithmetic (const Integer &modulus=Integer::One())
 ModularArithmetic (const ModularArithmetic &ma)
const IntegerGetModulus () const
void SetModulus (const Integer &newModulus)
virtual bool IsMontgomeryRepresentation () const
virtual Integer ConvertIn (const Integer &a) const
virtual Integer ConvertOut (const Integer &a) const
const IntegerHalf (const Integer &a) const
bool Equal (const Integer &a, const Integer &b) const
const IntegerIdentity () const
const IntegerAdd (const Integer &a, const Integer &b) const
IntegerAccumulate (Integer &a, const Integer &b) const
const IntegerInverse (const Integer &a) const
const IntegerSubtract (const Integer &a, const Integer &b) const
IntegerReduce (Integer &a, const Integer &b) const
const IntegerDouble (const Integer &a) const
const IntegerMultiplicativeIdentity () const
const IntegerMultiply (const Integer &a, const Integer &b) const
const IntegerSquare (const Integer &a) const
bool IsUnit (const Integer &a) const
const IntegerMultiplicativeInverse (const Integer &a) const
const IntegerDivide (const Integer &a, const Integer &b) const
Integer CascadeExponentiate (const Integer &x, const Integer &e1, const Integer &y, const Integer &e2) const
void SimultaneousExponentiate (Element *results, const Element &base, const Integer *exponents, unsigned int exponentsCount) const
unsigned int MaxElementBitLength () const
unsigned int MaxElementByteLength () const
- Public Member Functions inherited from TaoCrypt::AbstractRing
 AbstractRing (const AbstractRing &source)
AbstractRingoperator= (const AbstractRing &source)
virtual Element Exponentiate (const Element &a, const Integer &e) const
virtual const AbstractGroupMultiplicativeGroup () const
- Public Member Functions inherited from TaoCrypt::AbstractGroup
virtual bool InversionIsFast () const
virtual Element ScalarMultiply (const Element &a, const Integer &e) const
virtual Element CascadeScalarMultiply (const Element &x, const Integer &e1, const Element &y, const Integer &e2) const
virtual void SimultaneousMultiply (Element *results, const Element &base, const Integer *exponents, unsigned int exponentsCount) const

Static Public Attributes

static const RandomizationParameter DefaultRandomizationParameter

Protected Attributes

Integer modulus
Integer result
Integer result1

Detailed Description

Definition at line 33 of file modarith.hpp.


The documentation for this class was generated from the following files: