Crypto++  8.2
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
 
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
 
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
 
- Public Member Functions inherited from DL_GroupPrecomputation< Integer >
virtual bool NeedConversions () const
 Determines if elements needs conversion. More...
 
virtual const AbstractGroup< Element > & GetGroup () const=0
 Retrieves AbstractGroup interface. More...
 

Additional Inherited Members

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

Detailed Description

Definition at line 21 of file modexppc.h.

Member Function Documentation

◆ 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.

◆ 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.


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