mirror of
https://github.com/golang/go.git
synced 2026-06-28 03:40:37 +00:00
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:
parent
be35de22f1
commit
e4e6887cee
1 changed files with 420 additions and 1108 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue