Bump OpenSSL master in CI, handle rejection of degenerate RSA ciphertexts - #15432
Merged
Conversation
OpenSSL e5d2eaee1 (openssl/openssl#32124) now enforces 1 < ciphertext < n-1 in RSA private decryption on all builds, not just the FIPS module. Add a CRYPTOGRAPHY_OPENSSL_410_OR_GREATER constant and expect the Wycheproof SmallIntegerCiphertext OAEP cases to fail there, matching the existing AWS-LC and FIPS behavior. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
reaperhulk
approved these changes
Aug 10, 2026
reaperhulk
enabled auto-merge (squash)
August 10, 2026 11:01
reaperhulk
pushed a commit
that referenced
this pull request
Aug 18, 2026
…RSA ciphertext handling (#15479) * Bump BoringSSL, OpenSSL, AWS-LC in CI * Revert "Bump OpenSSL master in CI, handle rejection of degenerate RSA ciphertexts (#15432)" This reverts commit ccb3c6c, except for the CI pins, which are kept at the latest versions. OpenSSL 3b6a8a1fd0 (openssl/openssl#32314) moved the 1 < c < n-1 bound in RSA private decryption back behind FIPS_MODULE (applying it to RSASVE separately), so non-FIPS OpenSSL 4.1 no longer rejects the Wycheproof SmallIntegerCiphertext OAEP cases and the CRYPTOGRAPHY_OPENSSL_410_OR_GREATER handling is no longer needed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: pyca-boringbot[bot] <pyca-boringbot[bot]+106132319@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #15430 (cherry-picks its bump commit).
The new OpenSSL master pin contains only openssl/openssl#32124, which moved the SP800-56Br2
1 < ciphertext < n-1check inrsa_ossl_private_decryptout of#ifdef FIPS_MODULE, so all OpenSSL builds >= 4.1 now reject degenerate RSA ciphertexts. This broke the Wycheproofrsa_oaep_misc_test.jsoncase withct = 1(tcId 376, flaggedSmallIntegerCiphertext), which previously round-tripped on non-FIPS OpenSSL.This adds a
CRYPTOGRAPHY_OPENSSL_410_OR_GREATERconstant and extends the existing AWS-LC/FIPS carve-out in the Wycheproof OAEP test to cover it, so those cases are now expected to raiseValueError.🤖 Generated with Claude Code