crypto/x509: Incorrect RSA key size limitations in BoringCrypto/FIPS 140-2 mode #53755
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes: https://github.com/golang/go/blob/master/src/crypto/x509/boring.go#L24
What operating system and processor architecture are you using (
go env
)?Linux/amd64.
go env
OutputWhat did you do?
Attempt to use a larger RSA key (e.g., 4096 bits) in a TLS connection.
What did you expect to see?
Success. Per Hashicorp's recent discussions with Leidos around a Letter of Attestation for Vault based on BoringCrypto's 3678 certificate, larger key sizes are allowed. In particular, this limitation shouldn't be necessary as, per our lab contact (and with permission to quote in the interest of getting this change upstreamed):
P. said:
Since the relevant BC certificate has both 2048 and 3072 tested, we sould simplify the check to
>= 2048
.Let me know if this is agreeable and I can open a PR.
What did you see instead?
Failure. :-)
The text was updated successfully, but these errors were encountered: