Skip to content

Conversation

@qmuntal
Copy link
Member

@qmuntal qmuntal commented Jan 13, 2026

Go RSA implementation only restricts the minimum RSA key size to 1024 bits (and that can be bypassed by setting (GODEBUG=rsa1024min=0). It doesn't limit its maximum value and allow sizes not divisible by 8.

All out backends have a much stricter RSA key size policy. Take them into account when checking if we have to fallback to Go.

This fixes several compatibility issues with a new FIPS provider being developed in AZL3 and allows to unskip some additional tests.

@qmuntal qmuntal requested a review from gdams January 13, 2026 09:21
@qmuntal qmuntal requested a review from a team as a code owner January 13, 2026 09:21
@qmuntal qmuntal enabled auto-merge January 13, 2026 10:27
@qmuntal qmuntal merged commit 134aa30 into microsoft/main Jan 13, 2026
38 checks passed
@qmuntal qmuntal deleted the dev/qmuntal/rsaminlength branch January 13, 2026 11:27

- [crypto/rsa](https://pkg.go.dev/crypto/rsa)

[rsa.GenerateKey](https://pkg.go.dev/crypto/rsa#GenerateKey) only supports the following key sizes (in bits): 2048, 3072, 4096.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this just a mistake in the doc? Or is this something that was fixed, and is still true for some supported versions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants