RFR: 8365581: Optimize Java implementation of P256 arithmetic [v3]

Ben Perez bperez at openjdk.org
Fri Aug 22 15:58:54 UTC 2025


On Thu, 21 Aug 2025 23:30:08 GMT, Ben Perez <bperez at openjdk.org> wrote:

>> There are several places where MontgomeryIntegerPolynomialP256.mult() can be optimized. In particular, since modulus[2] = 0 several multiplications can be removed. Other multiplications can be replaced by shifts, which also saves time. Preliminary tests indicate an improvement between 5-10%.
>
> Ben Perez has updated the pull request incrementally with one additional commit since the last revision:
> 
>   minor edit

Testing on the most recent changes shows a roughly 10% improvement over the original

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

PR Comment: https://git.openjdk.org/jdk/pull/26792#issuecomment-3214863563


More information about the security-dev mailing list