RFR: 8325448: Hybrid Public Key Encryption [v33]

Sean Mullan mullan at openjdk.org
Wed Aug 27 12:35:53 UTC 2025


On Tue, 26 Aug 2025 15:24:35 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> src/java.base/share/classes/javax/crypto/spec/HPKEParameterSpec.java line 102:
>> 
>>> 100:  * At HPKE cipher initialization, if no HPKE implementation supports the provided
>>> 101:  * key type, an {@code InvalidKeyException} should be thrown. If the provided
>>> 102:  * {@code HPKEParameterSpec} is not supported by any HPKE implementation,
>> 
>> "is not supported" is typically used when an algorithm is not supported. I think you need different wording like "invalid parameters".
>
> I've changed to "is not accepted".

Ok.

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

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


More information about the security-dev mailing list