8000 Use the default SecureRandom in the Elytron crypto provider by abstractj · Pull Request #55601 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Use the default SecureRandom in the Elytron crypto provider - #55601

Open
abstractj wants to merge 1 commit into
keycloak:mainfrom
abstractj:issue-55544
Open

abstractj wants to merge 1 commit into
keycloak:mainfrom
abstractj:issue-55544

Conversation

@abstractj
Copy link
Copy Markdown
Contributor

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

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
@abstractj
abstractj requested a review from a team as a code owner November 26, 2026 22:24
Copilot AI balanced review requested due to automatic review settings November 26, 2026 22:24
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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

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.

Stop explicitly selecting SHA1PRNG in the Elytron crypto provider

2 participants

0