Repository navigation
Conversation
AI Disclosure: This commit was authored with the assistance of an AI coding tool. All changes were reviewed and approved by the committer. Signed-off-by: Bruno Oliveira da Silva <bruno@abstractj.com> Closes keycloak#55544
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for Elytron’s switch to default SecureRandom.
No open issues 🎉
What changed in this PR
Addresses #55544 by replacing explicit SHA1PRNG selection in Elytron with new SecureRandom(), allowing configured JCA providers to choose the random implementation without changing protocol algorithms.
Changes:
- Use default secure randomness for ECDH-ES ephemeral key generation.
- Use default secure randomness for X.509 certificate serial numbers.
| File | Description |
|---|---|
crypto/elytron/src/main/java/org/keycloak/crypto/elytron/ElytronEcdhEsAlgorithmProvider.java |
Switches ephemeral EC key generation to default SecureRandom. |
crypto/elytron/src/main/java/org/keycloak/crypto/elytron/ElytronCertificateUtilsProvider.java |
Switches certificate serial generation to default SecureRandom. |
Review effort: Balanced
This file contains hidden or bidirecti
8000
onal 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.
AI Disclosure: This commit was authored with the assistance of an AI coding tool. All changes were reviewed and approved by the committer.
Closes #55544