RFR: 8298390: Implementing ML-KEM key encapsulation mechanism [v5]

Ben Perez bperez at openjdk.org
Thu Nov 7 17:41:08 UTC 2024


On Fri, 1 Nov 2024 18:54:04 GMT, Mark Powers <mpowers 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.java line 525:
> 
>> 523:             throw new DecapsulateException("Invalid ciphertext");
>> 524:         }
>> 525: 
> 
> I don't see the hash check mentioned in section 7.3 of the spec.

This is now in `checkPrivateKey` and `implCheckPrivateKey`

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21478#discussion_r1833111622


More information about the security-dev mailing list