Crypto++ 8.7
Free C++ class library of cryptographic schemes
Public Member Functions | List of all members
ModExpPrecomputation Class Reference
+ Inheritance diagram for ModExpPrecomputation:

Public Member Functions

bool NeedConversions () const
 Determines if elements needs conversion. More...
 
Element ConvertIn (const Element &v) const
 Converts an element between representations. More...
 
virtual Element ConvertOut (const Element &v) const
 Converts an element between representations. More...
 
const AbstractGroup< Element > & GetGroup () const
 Retrieves AbstractGroup interface. More...
 
Element BERDecodeElement (BufferedTransformation &bt) const
 Decodes element in DER format. More...
 
void DEREncodeElement (BufferedTransformation &bt, const Element &v) const
 Encodes element in DER format. More...
 
void SetModulus (const Integer &v)
 
const IntegerGetModulus () const
 
virtual bool NeedConversions () const
 Determines if elements needs conversion. More...
 
virtual Element ConvertIn (const Element &v) const
 Converts an element between representations. More...
 
virtual Element ConvertOut (const Element &v) const
 Converts an element between representations. More...
 
virtual const AbstractGroup< Element > & GetGroup () const=0
 Retrieves AbstractGroup interface. More...
 
virtual Element BERDecodeElement (BufferedTransformation &bt) const=0
 Decodes element in DER format. More...
 
virtual void DEREncodeElement (BufferedTransformation &bt, const Element &P) const=0
 Encodes element in DER format. More...
 

Additional Inherited Members

- Public Types inherited from DL_GroupPrecomputation< Integer >
typedef Integer Element
 

Detailed Description

Definition at line 21 of file modexppc.h.

Constructor & Destructor Documentation

◆ ~ModExpPrecomputation()

virtual ModExpPrecomputation::~ModExpPrecomputation ( )
inlinevirtual

Definition at line 24 of file modexppc.h.

Member Function Documentation

◆ NeedConversions()

bool ModExpPrecomputation::NeedConversions ( ) const
inlinevirtual

Determines if elements needs conversion.

Returns
true if the element needs conversion, false otherwise

NeedConversions determines if an element must convert between representations.

Reimplemented from DL_GroupPrecomputation< Integer >.

Definition at line 27 of file modexppc.h.

◆ ConvertIn()

Element ModExpPrecomputation::ConvertIn ( const Element v) const
inlinevirtual

Converts an element between representations.

Parameters
velement to convert
Returns
an element converted to an alternate representation for internal use

ConvertIn is used when an element must convert between representations.

Reimplemented from DL_GroupPrecomputation< Integer >.

Definition at line 28 of file modexppc.h.

◆ ConvertOut()

virtual Element ModExpPrecomputation::ConvertOut ( const Element v) const
inlinevirtual

Converts an element between representations.

Parameters
velement to convert
Returns
an element converted from an alternate representation

Reimplemented from DL_GroupPrecomputation< Integer >.

Definition at line 29 of file modexppc.h.

◆ GetGroup()

const AbstractGroup< Element > & ModExpPrecomputation::GetGroup ( ) const
inlinevirtual

Retrieves AbstractGroup interface.

Returns
GetGroup() returns the AbstractGroup interface

Implements DL_GroupPrecomputation< Integer >.

Definition at line 30 of file modexppc.h.

◆ BERDecodeElement()

Element ModExpPrecomputation::BERDecodeElement ( BufferedTransformation bt) const
inlinevirtual

Decodes element in DER format.

Parameters
btBufferedTransformation object
Returns
element in the group

Implements DL_GroupPrecomputation< Integer >.

Definition at line 31 of file modexppc.h.

◆ DEREncodeElement()

void ModExpPrecomputation::DEREncodeElement ( BufferedTransformation bt,
const Element P 
) const
inlinevirtual

Encodes element in DER format.

Parameters
btBufferedTransformation object
PElement to encode

Implements DL_GroupPrecomputation< Integer >.

Definition at line 32 of file modexppc.h.

◆ SetModulus()

void ModExpPrecomputation::SetModulus ( const Integer v)
inline

Definition at line 35 of file modexppc.h.

◆ GetModulus()

const Integer & ModExpPrecomputation::GetModulus ( ) const
inline

Definition at line 36 of file modexppc.h.


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