]> Cypherpunks repositories - gostls13.git/commit
crypto/internal/nistec: use Booth multiplication in purego P-256
authorFilippo Valsorda <filippo@golang.org>
Fri, 26 Jul 2024 20:35:50 +0000 (22:35 +0200)
committerGopher Robot <gobot@golang.org>
Tue, 19 Nov 2024 22:30:05 +0000 (22:30 +0000)
commit298defcb54b88c4a5cbdf493b3b66a448fa53f0e
treeb8e1b763a67655cadb35512ef3a1a79ffc92f9c0
parenta794fa5f69dd80f5553a9fc3df4c08f9fdbb883c
crypto/internal/nistec: use Booth multiplication in purego P-256

Brings ScalarMult from 71 adds/op + 259 doubles/op to 58 adds/op + 263
doubles/op and ScalarBaseMult from 64 adds/op to 42 adds/op, matching
the assembly scalar multiplication algorithm.

Change-Id: I6603b52d1c3b2c25ace471bd36044149f6e8cfab
Reviewed-on: https://go-review.googlesource.com/c/go/+/627937
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/crypto/internal/nistec/p256.go