vendor patch: allow 2048 bit DSA keys DO NOT MERGE

This commit is contained in:
Nick Craig-Wood 2020-05-15 09:46:42 +01:00
parent e4f1e19127
commit c4700f4bf1
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ func checkDSAParams(param *dsa.Parameters) error {
// SSH specifies FIPS 186-2, which only provided a single size
// (1024 bits) DSA key. FIPS 186-3 allows for larger key
// sizes, which would confuse SSH.
if l := param.P.BitLen(); l != 1024 {
if l := param.P.BitLen(); l != 1024 && l != 2048 {
return fmt.Errorf("ssh: unsupported DSA key size %d", l)
}