On Mon, 30 Nov 2026 16:13:50 GMT, Artur Barashev <[email protected]> wrote:
>> 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.
You're right. I'll move the error handling to a higher level.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/33954#discussion_r4742654493