RFR: 8298390: Implementing ML-KEM key encapsulation mechanism [v5]
Weijun Wang
weijun at openjdk.org
Thu Nov 7 00:47:37 UTC 2024
On Mon, 4 Nov 2024 18:48:51 GMT, Weijun Wang <weijun at 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
More information about the security-dev
mailing list