Documentation ¶
Overview ¶
Package curve provides definitions of several models of elliptic curves defined over finite fields of large prime characteristic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EllCurve ¶
type EllCurve interface { Field() GF.Field Order() *big.Int Cofactor() *big.Int NewPoint(x, y GF.Elt) Point // Predicates IsOnCurve(Point) bool IsEqual(EllCurve) bool IsValid() bool // Arithmetic operations Identity() Point Neg(Point) Point Add(Point, Point) Point Double(Point) Point ClearCofactor(Point) Point ScalarMult(Point, *big.Int) Point }
EllCurve represents an elliptic curve group.
type Point ¶
type Point interface { Copy() Point IsIdentity() bool IsEqual(Point) bool IsTwoTorsion() bool X() GF.Elt Y() GF.Elt }
Point represents an elliptic curve point.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.