|
| ECP () |
| Construct an ECP. More...
|
|
| ECP (const ECP &ecp, bool convertToMontgomeryRepresentation) |
| Construct an ECP. More...
|
|
| ECP (const Integer &modulus, const FieldElement &a, const FieldElement &b) |
| Construct an ECP. More...
|
|
| ECP (BufferedTransformation &bt) |
| Construct an ECP from BER encoded parameters. More...
|
|
void | DEREncode (BufferedTransformation &bt) const |
| DER Encode. More...
|
|
bool | Equal (const Point &P, const Point &Q) const |
| Compare two points. More...
|
|
const Point & | Identity () const |
| Provides the Identity element. More...
|
|
const Point & | Inverse (const Point &P) const |
| Inverts the element in the group. More...
|
|
bool | InversionIsFast () const |
| Determine if inversion is fast. More...
|
|
const Point & | Add (const Point &P, const Point &Q) const |
| Adds elements in the group. More...
|
|
const Point & | Double (const Point &P) const |
| Doubles an element in the group. More...
|
|
Point | ScalarMultiply (const Point &P, const Integer &k) const |
| Performs a scalar multiplication. More...
|
|
Point | CascadeScalarMultiply (const Point &P, const Integer &k1, const Point &Q, const Integer &k2) const |
| TODO. More...
|
|
void | SimultaneousMultiply (Point *results, const Point &base, const Integer *exponents, unsigned int exponentsCount) const |
| Multiplies a base to multiple exponents in a group. More...
|
|
Point | Multiply (const Integer &k, const Point &P) const |
|
Point | CascadeMultiply (const Integer &k1, const Point &P, const Integer &k2, const Point &Q) const |
|
bool | ValidateParameters (RandomNumberGenerator &rng, unsigned int level=3) const |
|
bool | VerifyPoint (const Point &P) const |
| Verifies points on elliptic curve. More...
|
|
unsigned int | EncodedPointSize (bool compressed=false) const |
| Determines encoded point size. More...
|
|
bool | DecodePoint (Point &P, BufferedTransformation &bt, size_t len) const |
| Decodes an elliptic curve point. More...
|
|
bool | DecodePoint (Point &P, const byte *encodedPoint, size_t len) const |
| Decodes an elliptic curve point. More...
|
|
void | EncodePoint (byte *encodedPoint, const Point &P, bool compressed) const |
| Encodes an elliptic curve point. More...
|
|
void | EncodePoint (BufferedTransformation &bt, const Point &P, bool compressed) const |
| Encodes an elliptic curve point. More...
|
|
Point | BERDecodePoint (BufferedTransformation &bt) const |
| BER Decodes an elliptic curve point. More...
|
|
void | DEREncodePoint (BufferedTransformation &bt, const Point &P, bool compressed) const |
| DER Encodes an elliptic curve point. More...
|
|
Integer | FieldSize () const |
|
const Field & | GetField () const |
|
const FieldElement & | GetA () const |
|
const FieldElement & | GetB () const |
|
bool | operator== (const ECP &rhs) const |
|
virtual bool | Equal (const Element &a, const Element &b) const=0 |
| Compare two elements for equality. More...
|
|
virtual const Element & | Identity () const=0 |
| Provides the Identity element. More...
|
|
virtual const Element & | Add (const Element &a, const Element &b) const=0 |
| Adds elements in the group. More...
|
|
virtual const Element & | Inverse (const Element &a) const=0 |
| Inverts the element in the group. More...
|
|
virtual bool | InversionIsFast () const |
| Determine if inversion is fast. More...
|
|
virtual const Element & | Double (const Element &a) const |
| Doubles an element in the group. More...
|
|
virtual const Element & | Subtract (const Element &a, const Element &b) const |
| Subtracts elements in the group. More...
|
|
virtual Element & | Accumulate (Element &a, const Element &b) const |
| TODO. More...
|
|
virtual Element & | Reduce (Element &a, const Element &b) const |
| Reduces an element in the congruence class. More...
|
|
virtual Element | ScalarMultiply (const Element &a, const Integer &e) const |
| Performs a scalar multiplication. More...
|
|
virtual Element | CascadeScalarMultiply (const Element &x, const Integer &e1, const Element &y, const Integer &e2) const |
| TODO. More...
|
|
virtual void | SimultaneousMultiply (Element *results, const Element &base, const Integer *exponents, unsigned int exponentsCount) const |
| Multiplies a base to multiple exponents in a group. More...
|
|
virtual bool | DecodePoint (ECPPoint &P, BufferedTransformation &bt, size_t len) const=0 |
| Decodes an elliptic curve point. More...
|
|
virtual bool | DecodePoint (ECPPoint &P, const byte *encodedPoint, size_t len) const=0 |
| Decodes an elliptic curve point. More...
|
|
virtual bool | VerifyPoint (const ECPPoint &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 ECPPoint &P, bool compressed) const=0 |
| Encodes an elliptic curve point. More...
|
|
virtual void | EncodePoint (BufferedTransformation &bt, const ECPPoint &P, bool compressed) const=0 |
| Encodes an elliptic curve point. More...
|
|
virtual ECPPoint | BERDecodePoint (BufferedTransformation &bt) const=0 |
| BER Decodes an elliptic curve point. More...
|
|
virtual void | DEREncodePoint (BufferedTransformation &bt, const ECPPoint &P, bool compressed) const=0 |
| DER Encodes an elliptic curve point. More...
|
|
Elliptic Curve over GF(p), where p is prime.
Definition at line 26 of file ecp.h.