From b246c92a45334c6761843a9b9bdb103c50405861 Mon Sep 17 00:00:00 2001 From: Ashley Davis Date: Mon, 8 Mar 2021 16:37:55 +0000 Subject: [PATCH] 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 --- pkg/util/pki/generate.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/util/pki/generate.go b/pkg/util/pki/generate.go index f7e51c4c3..60d0a1e3e 100644 --- a/pkg/util/pki/generate.go +++ b/pkg/util/pki/generate.go @@ -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 )