Crypto++ 8.7
Free C++ class library of cryptographic schemes
|
Abstract class for encoding and decoding ellicptic curve points. More...
#include <ecpoint.h>
Public Member Functions | |
virtual bool | DecodePoint (Point &P, BufferedTransformation &bt, size_t len) const =0 |
Decodes an elliptic curve point. More... | |
virtual bool | DecodePoint (Point &P, const byte *encodedPoint, size_t len) const =0 |
Decodes an elliptic curve point. More... | |
virtual bool | VerifyPoint (const Point &P) const =0 |
Verifies points on elliptic curve. More... | |
virtual unsigned int | EncodedPointSize (bool compressed=false) const =0 |
Determines encoded point size. More... | |
virtual void | EncodePoint (byte *encodedPoint, const Point &P, bool compressed) const =0 |
Encodes an elliptic curve point. More... | |
virtual void | EncodePoint (BufferedTransformation &bt, const Point &P, bool compressed) const =0 |
Encodes an elliptic curve point. More... | |
virtual Point | BERDecodePoint (BufferedTransformation &bt) const =0 |
BER Decodes an elliptic curve point. More... | |
virtual void | DEREncodePoint (BufferedTransformation &bt, const Point &P, bool compressed) const =0 |
DER Encodes an elliptic curve point. More... | |
Abstract class for encoding and decoding ellicptic curve points.
Point | ellicptic curve point |
EncodedPoint is an interface for encoding and decoding elliptic curve points. The template parameter Point
should be a class like ECP or EC2N.
|
inlinevirtual |
|
pure virtual |
Decodes an elliptic curve point.
P | point which is decoded |
bt | source BufferedTransformation |
len | number of bytes to read from the BufferedTransformation |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Encodes an elliptic curve point.
P | point which is decoded |
encodedPoint | byte array for the encoded point |
compressed | flag indicating if the point is compressed |
encodedPoint
must be at least EncodedPointSize() in length
|
pure virtual |
Encodes an elliptic curve point.
bt | target BufferedTransformation |
P | point which is encoded |
compressed | flag indicating if the point is compressed |
|
pure virtual |
BER Decodes an elliptic curve point.
bt | source BufferedTransformation |
|
pure virtual |
DER Encodes an elliptic curve point.
bt | target BufferedTransformation |
P | point which is encoded |
compressed | flag indicating if the point is compressed |