Crypto++ 8.7
Free C++ class library of cryptographic schemes
|
ECP precomputation specialization. More...
#include <ecp.h>
Public Types | |
typedef ECP | EllipticCurve |
Public Types inherited from DL_GroupPrecomputation< ECP::Point > | |
typedef ECP::Point | Element |
Public Member Functions | |
bool | NeedConversions () const |
Determines if elements needs conversion. More... | |
Element | ConvertIn (const Element &P) const |
Converts an element between representations. More... | |
Element | ConvertOut (const Element &P) 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 | SetCurve (const ECP &ec) |
Set the elliptic curve. More... | |
const ECP & | GetCurve () const |
Get the elliptic curve. More... | |
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... | |
ECP precomputation specialization.
Implementation of DL_GroupPrecomputation<ECP::Point>
with input and output conversions for Montgomery modular multiplication.
typedef ECP EcPrecomputation< ECP >::EllipticCurve |
|
inlinevirtual |
|
inlinevirtual |
Determines if elements needs conversion.
NeedConversions determines if an element must convert between representations.
Reimplemented from DL_GroupPrecomputation< ECP::Point >.
|
inlinevirtual |
Converts an element between representations.
v | element to convert |
ConvertIn is used when an element must convert between representations.
Reimplemented from DL_GroupPrecomputation< ECP::Point >.
|
inlinevirtual |
Converts an element between representations.
v | element to convert |
Reimplemented from DL_GroupPrecomputation< ECP::Point >.
|
inlinevirtual |
Retrieves AbstractGroup interface.
Implements DL_GroupPrecomputation< ECP::Point >.
|
inlinevirtual |
Decodes element in DER format.
bt | BufferedTransformation object |
Implements DL_GroupPrecomputation< ECP::Point >.
|
inlinevirtual |
Encodes element in DER format.
bt | BufferedTransformation object |
P | Element to encode |
Implements DL_GroupPrecomputation< ECP::Point >.
|
inline |
|
inline |