RFR: 8368841: X25519 implementation differs from the specification in RFC 7748 [v3]

Anthony Scarpino ascarpino at openjdk.org
Fri Feb 27 00:03:50 UTC 2026


On Thu, 26 Feb 2026 23:01:22 GMT, Ben Perez <bperez at openjdk.org> wrote:

>> But `paramSpec` is newly created and it won't be the same as the one defined in the class.
>> 
>> On the other hand, I do think we can compare `params` itself. It's only useful internally and these are only 2 instances.
>
> Good catch. You're correct that comparing `paramSpec` won't work but `params` does.

Using `XECParameter.X448` is fine.

But I don't see why `paramSpec` wouldn't work as it is created from `params`.  With params set to `XECParameter.X448`, `new NamedParameterSpec(XECParameter.X448.getName())` would return the static `NamedParameterSpec.X448`

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29750#discussion_r2861873026


More information about the core-libs-dev mailing list