Documentation ¶
Overview ¶
Parameters for the SM9 (sm9p256v1) Elliptic curve
Index ¶
- func CompressPoint(curve *Curve, X, Y *big.Int) (cp []byte)
- func LegendreSymbol(a, p *big.Int) int
- func P256() elliptic.Curve
- type Curve
- func (curve *Curve) Add(x1, y1, x2, y2 *big.Int) (*big.Int, *big.Int)
- func (curve *Curve) CompressPoint(X, Y *big.Int) (cp []byte)
- func (curve *Curve) DecompressPoint(cp []byte) (X, Y *big.Int, err error)
- func (curve *Curve) Double(x1, y1 *big.Int) (*big.Int, *big.Int)
- func (curve *Curve) IsOnCurve(x, y *big.Int) bool
- func (curve *Curve) Params() *elliptic.CurveParams
- func (curve *Curve) ScalarBaseMult(k []byte) (*big.Int, *big.Int)
- func (curve *Curve) ScalarMult(Bx, By *big.Int, k []byte) (*big.Int, *big.Int)
- func (curve *Curve) Sqrt(a *big.Int) *big.Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LegendreSymbol ¶
Types ¶
type Curve ¶
type Curve struct { P *big.Int // the order of the underlying field N *big.Int // the order of the base point B *big.Int // the constant of the Curve equation Gx, Gy *big.Int // (x,y) of the base point BitSize int // the size of the underlying field }
func (*Curve) DecompressPoint ¶
func (*Curve) Params ¶
func (curve *Curve) Params() *elliptic.CurveParams
func (*Curve) ScalarMult ¶
Click to show internal directories.
Click to hide internal directories.