Crypto++  8.2
Free C++ class library of cryptographic schemes
Public Types | Public Member Functions | List of all members
EcPrecomputation< EC2N > Class Reference

EC2N precomputation specialization. More...

+ Inheritance diagram for EcPrecomputation< EC2N >:

Public Types

typedef EC2N EllipticCurve
 
- Public Types inherited from DL_GroupPrecomputation< EC2N::Point >
typedef EC2N::Point Element
 

Public Member Functions

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 SetCurve (const EC2N &ec)
 Set the elliptic curve. More...
 
const EC2NGetCurve () const
 Get the elliptic curve. More...
 
- Public Member Functions inherited from DL_GroupPrecomputation< EC2N::Point >
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...
 

Detailed Description

EC2N precomputation specialization.

Implementation of DL_GroupPrecomputation<EC2N::Point>

See also
DL_GroupPrecomputation

Definition at line 104 of file ec2n.h.

Member Function Documentation

◆ BERDecodeElement()

Element EcPrecomputation< EC2N >::BERDecodeElement ( BufferedTransformation bt) const
inlinevirtual

Decodes element in DER format.

Parameters
btBufferedTransformation object
Returns
element in the group

Implements DL_GroupPrecomputation< EC2N::Point >.

Definition at line 113 of file ec2n.h.

◆ DEREncodeElement()

void EcPrecomputation< EC2N >::DEREncodeElement ( BufferedTransformation bt,
const Element P 
) const
inlinevirtual

Encodes element in DER format.

Parameters
btBufferedTransformation object
PElement to encode

Implements DL_GroupPrecomputation< EC2N::Point >.

Definition at line 114 of file ec2n.h.

◆ SetCurve()

void EcPrecomputation< EC2N >::SetCurve ( const EC2N ec)
inline

Set the elliptic curve.

Parameters
ecECP derived class

SetCurve() is not inherited

Definition at line 119 of file ec2n.h.

◆ GetCurve()

const EC2N& EcPrecomputation< EC2N >::GetCurve ( ) const
inline

Get the elliptic curve.

Returns
EC2N curve

GetCurve() is not inherited

Definition at line 124 of file ec2n.h.


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