-
Type:
Sub-task
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: 26
-
Component/s: security-libs
A new `Cipher` algorithm named "HPKE" has been introduced. The HPKE algorithm is defined in [RFC 9180: Hybrid Public Key Encryption](https://www.rfc-editor.org/info/rfc9180). HPKE is a public key encryption scheme for encrypting arbitrary-sized plaintexts with a recipient's public key. It combines a key encapsulation mechanism (KEM), a key derivation function (KDF), and an authenticated encryption with additional data (AEAD) cipher. All KEM, KDF, and AEAD algorithm identifiers defined in RFC 9180 are supported.
The new `HPKEParameterSpec` class allows users to choose algorithm identifiers and set other parameters such as HPKE modes, application-supplied info, and mode-specific keys. The [API documentation](https://download.java.net/java/early_access/jdk26/docs/api/java.base/javax/crypto/spec/HPKEParameterSpec.html) also provides a simple example showing how to set parameters and perform encryption and decryption.
The new `HPKEParameterSpec` class allows users to choose algorithm identifiers and set other parameters such as HPKE modes, application-supplied info, and mode-specific keys. The [API documentation](https://download.java.net/java/early_access/jdk26/docs/api/java.base/javax/crypto/spec/HPKEParameterSpec.html) also provides a simple example showing how to set parameters and perform encryption and decryption.