> 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.
Shawn Emery has updated the pull request incrementally with one additional commit since the last revision: Increase maximum additions to 1 (performance) Remove unnecessary override methods Add comments to each of the methods Remove unnecessary reduce() from multByInt() Refactor square() method to reduce the number of redundant products and just add ------------- Changes: - all: https://git.openjdk.org/jdk/pull/29981/files - new: https://git.openjdk.org/jdk/pull/29981/files/caf5a354..ec70fbfb Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=29981&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=29981&range=01-02 Stats: 191 lines in 1 file changed: 159 ins; 19 del; 13 mod Patch: https://git.openjdk.org/jdk/pull/29981.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/29981/head:pull/29981 PR: https://git.openjdk.org/jdk/pull/29981
