type crypto/internal/fips140/ecdsa.Curve
35 uses
crypto/internal/fips140/ecdsa (current package)
cast.go#L54: func fipsPCT[P Point[P]](c *Curve[P], k *PrivateKey) error {
ecdsa.go#L53: type Curve[P Point[P]] struct {
ecdsa.go#L72: func precomputeParams[P Point[P]](c *Curve[P], order []byte) {
ecdsa.go#L82: func P224() *Curve[*nistec.P224Point] { return _P224() }
ecdsa.go#L84: var _P224 = sync.OnceValue(func() *Curve[*nistec.P224Point] {
ecdsa.go#L85: c := &Curve[*nistec.P224Point]{
ecdsa.go#L100: func P256() *Curve[*nistec.P256Point] { return _P256() }
ecdsa.go#L102: var _P256 = sync.OnceValue(func() *Curve[*nistec.P256Point] {
ecdsa.go#L103: c := &Curve[*nistec.P256Point]{
ecdsa.go#L118: func P384() *Curve[*nistec.P384Point] { return _P384() }
ecdsa.go#L120: var _P384 = sync.OnceValue(func() *Curve[*nistec.P384Point] {
ecdsa.go#L121: c := &Curve[*nistec.P384Point]{
ecdsa.go#L137: func P521() *Curve[*nistec.P521Point] { return _P521() }
ecdsa.go#L139: var _P521 = sync.OnceValue(func() *Curve[*nistec.P521Point] {
ecdsa.go#L140: c := &Curve[*nistec.P521Point]{
ecdsa.go#L158: func NewPrivateKey[P Point[P]](c *Curve[P], D, Q []byte) (*PrivateKey, error) {
ecdsa.go#L177: func NewPublicKey[P Point[P]](c *Curve[P], Q []byte) (*PublicKey, error) {
ecdsa.go#L189: func GenerateKey[P Point[P]](c *Curve[P], rand io.Reader) (*PrivateKey, error) {
ecdsa.go#L219: func randomPoint[P Point[P]](c *Curve[P], generate func([]byte) error) (k *bigmod.Nat, p P, err error) {
ecdsa.go#L274: func Sign[P Point[P], H fips140.Hash](c *Curve[P], h func() H, priv *PrivateKey, rand io.Reader, hash []byte) (*Signature, error) {
ecdsa.go#L307: func SignDeterministic[P Point[P], H fips140.Hash](c *Curve[P], h func() H, priv *PrivateKey, hash []byte) (*Signature, error) {
ecdsa.go#L319: func bits2octets[P Point[P]](c *Curve[P], hash []byte) []byte {
ecdsa.go#L325: func signGeneric[P Point[P]](c *Curve[P], priv *PrivateKey, drbg *hmacDRBG, hash []byte) (*Signature, error) {
ecdsa.go#L376: func inverse[P Point[P]](c *Curve[P], kInv, k *bigmod.Nat) {
ecdsa.go#L396: func hashToNat[P Point[P]](c *Curve[P], e *bigmod.Nat, hash []byte) {
ecdsa.go#L439: func Verify[P Point[P]](c *Curve[P], pub *PublicKey, hash []byte, sig *Signature) error {
ecdsa.go#L448: func verifyGeneric[P Point[P]](c *Curve[P], pub *PublicKey, hash []byte, sig *Signature) error {
ecdsa_noasm.go#L9: func sign[P Point[P]](c *Curve[P], priv *PrivateKey, drbg *hmacDRBG, hash []byte) (*Signature, error) {
ecdsa_noasm.go#L13: func verify[P Point[P]](c *Curve[P], pub *PublicKey, hash []byte, sig *Signature) error {
crypto/ecdsa
ecdsa.go#L188: func generateFIPS[P ecdsa.Point[P]](curve elliptic.Curve, c *ecdsa.Curve[P], rand io.Reader) (*PrivateKey, error) {
ecdsa.go#L237: func signFIPS[P ecdsa.Point[P]](c *ecdsa.Curve[P], priv *PrivateKey, rand io.Reader, hash []byte) ([]byte, error) {
ecdsa.go#L280: func signFIPSDeterministic[P ecdsa.Point[P]](c *ecdsa.Curve[P], hashFunc crypto.Hash, priv *PrivateKey, hash []byte) ([]byte, error) {
ecdsa.go#L352: func verifyFIPS[P ecdsa.Point[P]](c *ecdsa.Curve[P], pub *PublicKey, hash, sig []byte) bool {
ecdsa.go#L396: func publicKeyToFIPS[P ecdsa.Point[P]](c *ecdsa.Curve[P], pub *PublicKey) (*ecdsa.PublicKey, error) {
ecdsa.go#L404: func privateKeyToFIPS[P ecdsa.Point[P]](c *ecdsa.Curve[P], priv *PrivateKey) (*ecdsa.PrivateKey, error) {