crypto/internal/fips140/nistec: mechanically improve P-256 scalar fiat code

Made the following changes:

  * gofmt -r "(a) -> a"
  * "type p256OrdUint1 = uint64"
  * go run github.com/mdempsky/unconvert@latest -apply
  * gofmt -r "uint64(0x0) -> 0"
  * sed -E '/^\tvar x[0-9]+ uint64$/d; s/^\t(_|x[0-9]+)(, x[0-9]+)? = /\t\1\2 := /'
  * renamed p256OrdMontgomeryDomainFieldElement to p256OrdMontElement
  * replaced p256OrdNonMontgomeryDomainFieldElement with p256OrdElement

Change-Id: I996f76aa429e0c4ca049ee76a506e09d6a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/749140
Auto-Submit: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Neal Patel <neal@golang.org>
Reviewed-by: Neal Patel <nealpatel@google.com>
This commit is contained in:
Filippo Valsorda 2026-02-25 14:02:16 +01:00 committed by Gopher Robot
parent be35de22f1
commit e4e6887cee

File diff suppressed because it is too large Load diff