Skip to content
Snippets Groups Projects
Commit 8af5ea21 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Nettle.ECC_Curve: Added some documentation.

parent fab46529
No related branches found
No related tags found
No related merge requests found
#pike __REAL_VERSION__
#pragma strict_types
//! Base class for Elliptic Curve Definitions.
//!
//! @seealso
//! @[Crypto.ECC.Curve], @[Nettle.ECC_Curve]
extern int size();
//! Base class for a point on an elliptic curve.
class Point {
extern void set(Gmp.mpz|int x, Gmp.mpz|int y);
......@@ -65,6 +71,10 @@ class Point {
extern Gmp.mpz get_y();
// FIXME: Parameter to select encoding format.
//! Serialize the @[Point].
//!
//! The default implementation serializes according to ANSI x9.62
//! encoding #4 (uncompressed point format).
string encode()
{
int(31bit) size = bytes();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment