On Mon, 4 Nov 2024 18:48:51 GMT, Weijun Wang <wei...@openjdk.org> wrote:
>> Ben Perez has updated the pull request incrementally with one additional >> commit since the last revision: >> >> NamedParameterSpec constants > > src/java.base/share/classes/com/sun/crypto/provider/ML_KEM_Provider.java line > 131: > >> 129: public byte[][] implEncapsulate(String name, byte[] >> encapsulationKey, Object ek, SecureRandom secureRandom) { >> 130: byte[] randomBytes = new byte[32]; >> 131: secureRandom.nextBytes(randomBytes); > > `secureRandom` could be null. Provide a default one. Done. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/21478#discussion_r1831900756