On Sun, 1 Mar 2026 00:15:48 GMT, Shawn Emery <[email protected]> wrote:

> This implementation changes the limb size of X25519 from 10 x 26 bits to 5 x 
> 51 bits in order to take advantage of performance gains from a reduction in 
> the number of limb operations.
> 
> Performance gains were observed from the key generation/agreement, 
> encapsulation, and decapsulation benchmarks for  both aarch64 with 3 - 8% 
> gains and x86_64 with 9% gains.
> 
> Thank you @ferakocz for their help in working through the early stages of 
> this code with me.

src/java.base/share/classes/sun/security/util/math/intpoly/IntegerPolynomial25519.java
 line 155:

> 153: 
> 154:     @Override
> 155:     @IntrinsicCandidate

Is this intrinsic annotation incorrectly copied from 
MontgomeryIntegerPolynomialP256.java? I only find an intrinsic of this name and 
signature for that class.

The classFileParser intrinsic check doesn't result in VM crash for product 
builds so you might have ignored its output message.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29981#discussion_r2869140521

Reply via email to