On Thu, 27 Feb 2025 03:22:18 GMT, Weijun Wang <wei...@openjdk.org> wrote:
>> Implement HPKE as defined in https://datatracker.ietf.org/doc/rfc9180/. >> >>  > > Weijun Wang has updated the pull request incrementally with one additional > commit since the last revision: > > example and KAT src/java.base/share/classes/com/sun/crypto/provider/HPKE.java line 292: > 290: return kdf.deriveKey(algorithm, > HKDFParameterSpec.expandOnly(exporter_secret, > 291: DHKEM.labeledInfo(suite_id, > "sec".getBytes(StandardCharsets.UTF_8), > 292: exporter_context, L), L)); See other comment about input validation on `L` and whether it is useful to detect the case where `L` < 0 separately in the method that throws `Exception`. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18411#discussion_r1975710863