On Mon, 30 Nov 2026 15:47:43 GMT, Weijun Wang <[email protected]> wrote:

>> Add pure ML-KEM named groups for TLS 1.3 as described in 
>> https://datatracker.ietf.org/doc/draft-ietf-tls-mlkem.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Weijun Wang has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   copyright year

src/java.base/share/classes/sun/security/ssl/KeyShareExtension.java line 629:

> 627:                                         encaped.encapsulation());
> 628:                             } catch (NoSuchAlgorithmException | 
> InvalidKeySpecException e) {
> 629:                                 throw 
> shc.conContext.fatal(Alert.INTERNAL_ERROR, e);

Is it conforming to the following text from draft-ietf-tls-mlkem-11#section-4.2:


For all parameter sets, the server MUST perform the encapsulation key check 
described in Section 7.2 of [[FIPS203](https://doi.org/10.6028/nist.fips.203)] 
on the client's encapsulation key, and abort with an **illegal_parameter** 
alert if it fails.

For all parameter sets, the client MUST check if the ciphertext length matches 
the selected parameter set, and abort with an **illegal_parameter** alert if it 
fails.

If ML-KEM decapsulation fails for any other reason, the connection MUST be 
aborted with an **internal_error** alert.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/33954#discussion_r4741986234

Reply via email to