RFR: 8295425: DH keys missing the optional private value length field even when it's specified

Valerie Peng valeriep at openjdk.org
Wed Feb 8 01:59:43 UTC 2023


This changes the SunPKCS11 provider to use the same default private exponent length as the value used by SunJCE provider when initializing the DH Key Pair Generator impl using key size. In addition, the generated key pair will contain the specified parameters. If the supplied parameter does not contain the optional private exponent length, then we will leave it to the underlying PKCS11 library.

Thanks in advance for the review~
Valerie

-------------

Commit messages:
 - 8295425: DH keys missing the optional private value length field even when it's specified

Changes: https://git.openjdk.org/jdk/pull/12466/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12466&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8295425
  Stats: 131 lines in 2 files changed: 121 ins; 1 del; 9 mod
  Patch: https://git.openjdk.org/jdk/pull/12466.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12466/head:pull/12466

PR: https://git.openjdk.org/jdk/pull/12466



More information about the security-dev mailing list