JDK-8305310 : Calculate PublicKey from PrivateKey
  • Type: Enhancement
  • Component: security-libs
  • Sub-Component: java.security
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-03-30
  • Updated: 2023-04-13
  • Resolved: 2023-04-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21
21 b18Fixed
Related Reports
Blocks :  
Description
While it's impossible to get a private key out of a public key, one can usually easily calculate a public key from a private key. This is useful for DHKEM implementation where the decapsulator has a private key but the decapsulation process requires the public key encoding to create kem_context used in HKDF.
Comments
Changeset: 97276859 Author: Weijun Wang <weijun@openjdk.org> Date: 2023-04-10 00:55:16 +0000 URL: https://git.openjdk.org/jdk/commit/97276859ab3892fbf3e839f9403a8e8a1760e803
10-04-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/13250 Date: 2023-03-30 19:31:47 +0000
30-03-2023