clarify exact curve types of current ECDSA keys

it's conceivable that in the future we could have Ed25519 certs,
which would also have a key size of 256 but would be a new named entry
here

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
This commit is contained in:
Ashley Davis 2021-03-08 16:37:55 +00:00
parent 442d7dbc08
commit b246c92a45
No known key found for this signature in database
GPG Key ID: DD14CC017E32BEB1

View File

@ -38,11 +38,11 @@ const (
// generator functions in this package.
MaxRSAKeySize = 8192
// ECCurve256 represents a 256bit ECDSA key.
// ECCurve256 represents a secp256r1 / prime256v1 / NIST P-256 ECDSA key.
ECCurve256 = 256
// ECCurve384 represents a 384bit ECDSA key.
// ECCurve384 represents a secp384r1 / NIST P-384 ECDSA key.
ECCurve384 = 384
// ECCurve521 represents a 521bit ECDSA key.
// ECCurve521 represents a secp521r1 / NIST P-521 ECDSA key.
ECCurve521 = 521
)