RFR: 8314323: Implement JEP 527: TLS 1.3 Hybrid Key Exchange [v9]

Hai-May Chao hchao at openjdk.org
Sat Dec 6 06:12:59 UTC 2025


On Mon, 1 Dec 2025 21:47:29 GMT, Bradford Wetmore <wetmore at openjdk.org> wrote:

>> src/java.base/share/classes/com/sun/crypto/provider/DH.java line 66:
>> 
>>> 64:  * KEMs.
>>> 65:  */
>>> 66: public class DH implements KEMSpi {
>> 
>> This class includes more than a DH KEM wrapper implementation. The provider is registering all the hybrid algorithms, including the ML-KEM parts. It feels odd to be hiding the provider inside this class. I suggest creating a separate `HybridProvider` class that is in `sun.security.ssl` package and either encapsulating the DH impl inside that, or better yet, create a separate class for it.
>
> Agreed.

Created a new `HybridProvider` class as suggested.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27614#discussion_r2594591729


More information about the security-dev mailing list