Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Point ¶
func InfinitePoint ¶
func InfinitePoint() *Point
type PrimeCurve ¶
type PrimeCurve struct { P *big.Int // Prime modulus (NIST: p) A *big.Int // y^2 = x^3 + Ax + b (NIST: a = -3) B *big.Int // y^2 = x^3 + ax + B (NIST: b) G *Point // Generator (NIST: G) N *big.Int // Order of Generator (NIST: R) H *big.Int // Cofactor (NIST: f = 1) }
func NewP256Curve ¶
func NewP256Curve() *PrimeCurve
func NewPrimeCurve ¶
func NewPrimeCurve(p, a, b, gx, gy, n, h *big.Int) *PrimeCurve
func (*PrimeCurve) Double ¶
func (c *PrimeCurve) Double(p1 *Point) *Point
func (*PrimeCurve) Satisfied ¶
func (c *PrimeCurve) Satisfied(p *Point) bool
func (*PrimeCurve) ScalarMultiply ¶
func (c *PrimeCurve) ScalarMultiply(scalar *big.Int, p1 *Point) *Point
Click to show internal directories.
Click to hide internal directories.