Documentation ¶
Overview ¶
Package elliptic implements several standard elliptic curves over prime fields.
Package elliptic implements several standard elliptic curves over prime fields.
Package elliptic implements several standard elliptic curves over prime fields.
Index ¶
- func BarrettDiv(prod, mu *big.Int) (r *big.Int)
- func CalcMu(p *big.Int) *big.Int
- func DiffInt(x, y *big.Int) (delta int64, err error)
- func Marshal(curve Curve, x, y *big.Int) []byte
- func RecoverPoint(x1 *big.Int, v uint) (y1 *big.Int, err error)
- func SM2asm() p256Curve
- func Unmarshal(curve Curve, data []byte) (x, y *big.Int)
- type Curve
- type CurveParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Curve ¶
A Curve represents a short-form Weierstrass curve with a=-3. See https://www.hyperelliptic.org/EFD/g1p/auto-shortw.html
func P256 ¶
func P256() Curve
P256 returns a Curve which implements sm2 via elliptic package
The cryptographic operations do not use constant-time algorithms.
type CurveParams ¶
type CurveParams = elliptic.CurveParams
CurveParams contains the parameters of an elliptic curve and also provides a generic, non-constant time implementation of Curve.
Click to show internal directories.
Click to hide internal directories.