RFR: 8325448: Hybrid Public Key Encryption [v34]

Sean Mullan mullan at openjdk.org
Wed Aug 27 14:02:54 UTC 2025


On Tue, 26 Aug 2025 16:01:34 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> Implement HPKE as defined in https://datatracker.ietf.org/doc/rfc9180/.
>> 
>> <img src="https://github.com/user-attachments/assets/45625334-903b-4a3d-a987-7fddeab9a604" />
>
> Weijun Wang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   address Sean's comments

src/java.base/share/classes/javax/crypto/spec/HPKEParameterSpec.java line 304:

> 302:      * @return a new {@code HPKEParameterSpec} object
> 303:      * @throws NullPointerException if {@code psk_id} is {@code null}
> 304:      * @throws InvalidAlgorithmParameterException if {@code psk} and {@code psk_id} are

Why not throw `IllegalArgumentException` here instead?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18411#discussion_r2304018944


More information about the security-dev mailing list