File tree 2 files changed +6
-3
lines changed 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,8 @@ var defaultCipherSuitesTLS13NoAES = []uint16{
92
92
}
93
93
94
94
// The FIPS-only policies below match BoringSSL's
95
- // ssl_compliance_policy_fips_202205, which is based on NIST SP 800-52r2.
95
+ // ssl_compliance_policy_fips_202205, which is based on NIST SP 800-52r2, with
96
+ // minor changes per https://go.dev/issue/71757.
96
97
// https://cs.opensource.google/boringssl/boringssl/+/master:ssl/ssl_lib.cc;l=3289;drc=ea7a88fa
97
98
98
99
var defaultSupportedVersionsFIPS = []uint16 {
@@ -102,7 +103,7 @@ var defaultSupportedVersionsFIPS = []uint16{
102
103
103
104
// defaultCurvePreferencesFIPS are the FIPS-allowed curves,
104
105
// in preference order (most preferable first).
105
- var defaultCurvePreferencesFIPS = []CurveID {CurveP256 , CurveP384 }
106
+ var defaultCurvePreferencesFIPS = []CurveID {CurveP256 , CurveP384 , CurveP521 }
106
107
107
108
// defaultSupportedSignatureAlgorithmsFIPS currently are a subset of
108
109
// defaultSupportedSignatureAlgorithms without Ed25519 and SHA-1.
@@ -115,6 +116,7 @@ var defaultSupportedSignatureAlgorithmsFIPS = []SignatureScheme{
115
116
PKCS1WithSHA384 ,
116
117
ECDSAWithP384AndSHA384 ,
117
118
PKCS1WithSHA512 ,
119
+ ECDSAWithP521AndSHA512 ,
118
120
}
119
121
120
122
// defaultCipherSuitesFIPS are the FIPS-allowed cipher suites.
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ func isFIPSCipherSuite(id uint16) bool {
106
106
107
107
func isFIPSCurve (id CurveID ) bool {
108
108
switch id {
109
- case CurveP256 , CurveP384 :
109
+ case CurveP256 , CurveP384 , CurveP521 :
110
110
return true
111
111
}
112
112
return false
@@ -130,6 +130,7 @@ func isFIPSSignatureScheme(alg SignatureScheme) bool {
130
130
PKCS1WithSHA384 ,
131
131
ECDSAWithP384AndSHA384 ,
132
132
PKCS1WithSHA512 ,
133
+ ECDSAWithP521AndSHA512 ,
133
134
PSSWithSHA256 ,
134
135
PSSWithSHA384 ,
135
136
PSSWithSHA512 :
You can’t perform that action at this time.
0 commit comments