-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change RSA.LegalKeySizes for Apple platforms to return 8192 #110591
Conversation
Should we add a test that keys with the max size can be created? |
We do here Lines 23 to 27 in cc66c77
But it's (effectively) a manual-only because it takes about ~30 seconds for macOS to generate an RSA 8K key. It can take several minutes for platforms that support 16K keys. Even for Outerloop that's too long, in my opinion. This manual-only test fails without the fix, which is what prompted me to make the change. |
Makes sense, thanks. |
This changes RSA.LegalKeySizes to return a maximum of 8192 on Apple platforms, as opposed to 16384. At least on macOS Sequoia and Sonoma, the limit is 8192-bit.
While we are here, memoize the
KeySizes
instance. They are immutable. The returned array is not - so we only memoize the interiorKeySizes
instance, not the returned array.Closes #110588.