RFR: 8314323: Implement JEP 527: TLS 1.3 Hybrid Key Exchange [v14]
Bradford Wetmore
wetmore at openjdk.org
Sat Dec 6 07:39:20 UTC 2025
On Sat, 6 Dec 2025 06:09:34 GMT, Hai-May Chao <hchao at openjdk.org> wrote:
>> src/java.base/share/classes/sun/security/ssl/Hybrid.java line 143:
>>
>>> 141:
>>> 142: @Override
>>> 143: public void initialize(AlgorithmParameterSpec params,
>>
>> Since you initialize here, is it still necessary to init inside the constructor?
>
> No, so removed init from the constructor.
I was wondering the same thing.
I don't think it hurts anything, other than calling the initialization twice, but likely could be removed.
The first call uses the `JCAUtil.getDefSecureRandom()` instead, but that is replaced with the real context `SecureRandom` when this method is called.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27614#discussion_r2594596953
More information about the security-dev
mailing list