8000 Stop explicitly selecting SHA1PRNG in the Elytron crypto provider · Issue #55544 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Stop explicitly selecting SHA1PRNG in the Elytron crypto provider #55544

Backlog

Description

@abstractj

Enhancement Description

The Elytron crypto provider explicitly selects SHA1PRNG when generating ephemeral EC key pairs for outgoing ECDH-ES JWE and when generating X.509 certificate serial numbers. Replace these explicit selections with provider-neutral SecureRandom selection, consistent with the default crypto provider.

Elytron ECDH-ES key generation · Elytron certificate serial generation

Value Proposition

This removes avoidable, provider-specific selection of a SHA-1-based PRNG and allows the configured JCA providers to select the appropriate secure random implementation. The change does not alter any protocol algorithm or serialized identifier.

Goals

  • Use provider-neutral secure randomness when generating ECDH-ES ephemeral key pairs.
  • Use provider-neutral secure randomness when generating X.509 certificate serial numbers.
  • Preserve ECDH-ES interoperability and certificate-generation behavior.

Non-Goals

  • Change the ECDH-ES key derivation function or supported JWE algorithms.
  • Change the default or FIPS crypto providers.
  • Remove SHA-1-based protocol algorithms retained for interoperability.
  • Remove the Elytron crypto provider.

Acceptance criteria

  • crypto/elytron/src/main no longer explicitly requests SHA1PRNG.
  • Elytron ECDH-ES encryption and decryption tests continue to pass.
  • Elytron certificate-generation tests continue to pass.
  • The selected random implementation remains controlled by the configured JCA providers.

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    No fields configured for task.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0