Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + func GenerateKey(curve Curve, rand io.Reader) (priv []byte, x, y *big.Int, err error) + func Marshal(curve Curve, x, y *big.Int) []byte + func MarshalCompressed(curve Curve, x, y *big.Int) []byte + func Unmarshal(curve Curve, data []byte) (x, y *big.Int) + func UnmarshalCompressed(curve Curve, data []byte) (x, y *big.Int) + type Curve interface + Add func(x1, y1, x2, y2 *big.Int) (x, y *big.Int) + Double func(x1, y1 *big.Int) (x, y *big.Int) + IsOnCurve func(x, y *big.Int) bool + Params func() *CurveParams + ScalarBaseMult func(k []byte) (x, y *big.Int) + ScalarMult func(x1, y1 *big.Int, k []byte) (x, y *big.Int) + func P224() Curve + func P256() Curve + func P384() Curve + func P521() Curve + type CurveParams struct + B *big.Int + BitSize int + Gx *big.Int + Gy *big.Int + N *big.Int + Name string + P *big.Int + func (curve *CurveParams) Add(x1, y1, x2, y2 *big.Int) (*big.Int, *big.Int) + func (curve *CurveParams) Double(x1, y1 *big.Int) (*big.Int, *big.Int) + func (curve *CurveParams) IsOnCurve(x, y *big.Int) bool + func (curve *CurveParams) Params() *CurveParams + func (curve *CurveParams) ScalarBaseMult(k []byte) (*big.Int, *big.Int) + func (curve *CurveParams) ScalarMult(Bx, By *big.Int, k []byte) (*big.Int, *big.Int)