Versions in this module Expand all Collapse all go1 go1.24.2 Apr 1, 2025 go1.24.1 Mar 4, 2025 go1.24.0 Feb 11, 2025 Changes in this version + func TestingOnlyNewDRBG(hash func() fips140.Hash, entropy, nonce []byte, s []byte) *hmacDRBG + func Verify[P Point[P]](c *Curve[P], pub *PublicKey, hash []byte, sig *Signature) error + type Curve struct + N *bigmod.Modulus + func P224() *Curve[*nistec.P224Point] + func P256() *Curve[*nistec.P256Point] + func P384() *Curve[*nistec.P384Point] + func P521() *Curve[*nistec.P521Point] + type Point interface + Add func(p1, p2 P) P + Bytes func() []byte + BytesX func() ([]byte, error) + ScalarBaseMult func([]byte) (P, error) + ScalarMult func(P, []byte) (P, error) + SetBytes func([]byte) (P, error) + type PrivateKey struct + func GenerateKey[P Point[P]](c *Curve[P], rand io.Reader) (*PrivateKey, error) + func NewPrivateKey[P Point[P]](c *Curve[P], D, Q []byte) (*PrivateKey, error) + func (priv *PrivateKey) Bytes() []byte + func (priv *PrivateKey) PublicKey() *PublicKey + type PublicKey struct + func NewPublicKey[P Point[P]](c *Curve[P], Q []byte) (*PublicKey, error) + func (pub *PublicKey) Bytes() []byte + type Signature struct + R []byte + S []byte + func SignDeterministic[P Point[P], H fips140.Hash](c *Curve[P], h func() H, priv *PrivateKey, hash []byte) (*Signature, error) + func Sign[P Point[P], H fips140.Hash](c *Curve[P], h func() H, priv *PrivateKey, rand io.Reader, hash []byte) (*Signature, error) go1.24rc3 Feb 5, 2025 go1.24rc2 Jan 16, 2025 go1.24rc1 Dec 13, 2024