Skip to content

Commit

Permalink
feat(pki): switch to ECDSA with SHA-256
Browse files Browse the repository at this point in the history
  • Loading branch information
streambinder committed Jul 19, 2022
1 parent deb9677 commit 5678544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pki/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func newKey(algo int) (*Key, error) {
case EDDSA:
_, key, err = ed25519.GenerateKey(rand.Reader)
case ECDSA:
key, err = ecdsa.GenerateKey(elliptic.P521(), rand.Reader)
key, err = ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
case RSA:
key, err = rsa.GenerateKey(rand.Reader, 4096)
default:
Expand Down

0 comments on commit 5678544

Please sign in to comment.