mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-01 19:17:36 +03:00
crypto/rsa: refuse to generate and/or use keys smaller than 1024 bits
Fixes #68762 Change-Id: Id89c770571d7cc27c6cf7932139ec3424383a7ef Reviewed-on: https://go-review.googlesource.com/c/go/+/629938 Reviewed-by: Roland Shoemaker <roland@golang.org> Auto-Submit: Filippo Valsorda <filippo@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
4cb059fbbf
commit
68e64cfceb
1 changed files with 1 additions and 1 deletions
|
@ -350,7 +350,7 @@ func TestFIPSCertAlgs(t *testing.T) {
|
|||
// Set up some roots, intermediate CAs, and leaf certs with various algorithms.
|
||||
// X_Y is X signed by Y.
|
||||
R1 := fipsCert(t, "R1", fipsRSAKey(t, 2048), nil, fipsCertCA|fipsCertFIPSOK)
|
||||
R2 := fipsCert(t, "R2", fipsRSAKey(t, 512), nil, fipsCertCA)
|
||||
R2 := fipsCert(t, "R2", fipsRSAKey(t, 1024), nil, fipsCertCA)
|
||||
R3 := fipsCert(t, "R3", fipsRSAKey(t, 4096), nil, fipsCertCA|fipsCertFIPSOK)
|
||||
|
||||
M1_R1 := fipsCert(t, "M1_R1", fipsECDSAKey(t, elliptic.P256()), R1, fipsCertCA|fipsCertFIPSOK)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue