On Tue, 26 Aug 2025 15:24:35 GMT, Weijun Wang <wei...@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