Lines Matching refs:ECDSA
13 "crypto/ecdsa"
35 rsaBits = flag.Int("rsa-bits", 2048, "Size of RSA key to generate. Ignored if --ecdsa-curve is set")
36 ecdsaCurve = flag.String("ecdsa-curve", "", "ECDSA curve to use to generate a key. Valid values are P224, P256, P384, P521")
43 case *ecdsa.PrivateKey:
54 case *ecdsa.PrivateKey:
57 fmt.Fprintf(os.Stderr, "Unable to marshal ECDSA private key: %v", err)
79 priv, err = ecdsa.GenerateKey(elliptic.P224(), rand.Reader)
81 priv, err = ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
83 priv, err = ecdsa.GenerateKey(elliptic.P384(), rand.Reader)
85 priv, err = ecdsa.GenerateKey(elliptic.P521(), rand.Reader)