Elliptic Curve over GF(2^n). More...
#include <ec2n.h>
Public Types | |
typedef GF2NP | Field |
typedef Field::Element | FieldElement |
typedef EC2NPoint | Point |
typedef EC2NPoint | Element |
Public Member Functions | |
EC2N (const Field &field, const Field::Element &a, const Field::Element &b) | |
EC2N (BufferedTransformation &bt) | |
void | DEREncode (BufferedTransformation &bt) const |
bool | Equal (const Point &P, const Point &Q) const |
const Point & | Identity () const |
const Point & | Inverse (const Point &P) const |
bool | InversionIsFast () const |
const Point & | Add (const Point &P, const Point &Q) const |
const Point & | Double (const Point &P) const |
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 |
unsigned int | EncodedPointSize (bool compressed=false) const |
bool | DecodePoint (Point &P, BufferedTransformation &bt, size_t len) const |
bool | DecodePoint (Point &P, const byte *encodedPoint, size_t len) const |
void | EncodePoint (byte *encodedPoint, const Point &P, bool compressed) const |
void | EncodePoint (BufferedTransformation &bt, const Point &P, bool compressed) const |
Point | BERDecodePoint (BufferedTransformation &bt) const |
void | DEREncodePoint (BufferedTransformation &bt, const Point &P, bool compressed) const |
Integer | FieldSize () const |
const Field & | GetField () const |
const FieldElement & | GetA () const |
const FieldElement & | GetB () const |
bool | operator== (const EC2N &rhs) const |
virtual const Element & | Subtract (const Element &a, const Element &b) const |
virtual Element & | Accumulate (Element &a, const Element &b) const |
virtual Element & | Reduce (Element &a, const Element &b) const |
virtual Element | ScalarMultiply (const Element &a, const Integer &e) const |
virtual Element | CascadeScalarMultiply (const Element &x, const Integer &e1, const Element &y, const Integer &e2) const |
virtual void | SimultaneousMultiply (Element *results, const Element &base, const Integer *exponents, unsigned int exponentsCount) const |
Elliptic Curve over GF(2^n).
Definition at line 30 of file ec2n.h.