|
class | EccGfp |
|
class | EcdsaSignature |
|
Definition at line 196 of file ecc.h.
◆ EccGfpPoint()
scc::crypto::EccGfpPoint::EccGfpPoint |
( |
const EccGfp & |
curve | ) |
|
|
inline |
Construct a point on the elliptic curve.
Point is set to infinity.
Definition at line 207 of file ecc.h.
◆ get() [1/2]
Get the coordinates.
- Parameters
-
x | X coordinate |
y | Y coordinate |
Throws an exception if the point is invalid.
◆ get() [2/2]
void scc::crypto::EccGfpPoint::get |
( |
std::vector< char > & |
| ) |
const |
Get the coordinates to a data string.
String will be reset to the coordinate data length.
Throws an exception if the point is invalid.
◆ infinite() [1/2]
static bool scc::crypto::EccGfpPoint::infinite |
( |
const EccGfpPoint & |
| ) |
|
|
static |
Test the point for infinity.
Failure means the point is invalid, or is not the infinity point.
◆ infinite() [2/2]
static bool scc::crypto::EccGfpPoint::infinite |
( |
const EccGfpPoint & |
, |
|
|
const EccGfp & |
|
|
) |
| |
|
static |
Test the point for infinity on a curve.
Failure means the point is invalid, or is not the infinity point.
◆ reset()
void scc::crypto::EccGfpPoint::reset |
( |
const EccGfp & |
| ) |
|
Reset the point to fall on the elliptic curve.
Point will be initially set to infinity.
◆ set() [1/5]
void scc::crypto::EccGfpPoint::set |
( |
| ) |
|
Set point to infinity.
Throws exception if point is invalid.
◆ set() [2/5]
Set point.
- Parameters
-
x | X coordinate |
y | Y coordinate |
Throws an exception if the point is invalid or coordinates are not on the curve.
◆ set() [3/5]
Set point to a new curve.
Throws an exception if the coordinates are not on the curve.
Definition at line 239 of file ecc.h.
◆ set() [4/5]
void scc::crypto::EccGfpPoint::set |
( |
const void * |
, |
|
|
int |
|
|
) |
| |
Set the point from a data string.
Throws an exception if the point or input data is invalid.
◆ set() [5/5]
void scc::crypto::EccGfpPoint::set |
( |
const void * |
loc, |
|
|
int |
len, |
|
|
EccGfp & |
curve |
|
) |
| |
|
inline |
Set the point from a data string on a new curve.
Throws an exception if the point or input data is invalid.
Definition at line 258 of file ecc.h.
◆ valid() [1/2]
static bool scc::crypto::EccGfpPoint::valid |
( |
const EccGfpPoint & |
| ) |
|
|
static |
Verify the point.
Failure means the point is invalid, infinite or does not fall on the curve.
◆ valid() [2/2]
Verify the point on a curve.
Failure means the point is invalid, infinite or does not fall on the curve.
The documentation for this class was generated from the following file: