RFR: 8368841: X25519 implementation differs from the specification in RFC 7748 [v2]
Shawn M Emery
duke at openjdk.org
Wed Feb 18 19:05:11 UTC 2026
On Tue, 17 Feb 2026 20:56:41 GMT, Ben Perez <bperez at openjdk.org> wrote:
>> Our implementation of X25519 does not zero the MSB of the `u` coordinate as required by RFC 7748. Currently the test `jdk/sun/security/ec/xec/TestXDH.java` zeroes the bit manually while parsing test vectors, which is likely why this went uncaught.
>
> Ben Perez has updated the pull request incrementally with one additional commit since the last revision:
>
> Copyright update
Can your remove the clearHighBit logic in jdk/sun/security/ec/xec/TestXDH.java with this change now?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29750#issuecomment-3922609927
More information about the security-dev
mailing list