Skip to content

Commit

Permalink
crypto/internal/fips/nistec: remove P-256 from generate.go
Browse files Browse the repository at this point in the history
It's not been autogenerated since CL 627937.

Change-Id: I2d2e249c2bab673342ee42a48582b082c6958cdd
Reviewed-on: https://go-review.googlesource.com/c/go/+/629836
Reviewed-by: Dmitri Shuralyov <[email protected]>
Reviewed-by: Roland Shoemaker <[email protected]>
Auto-Submit: Filippo Valsorda <[email protected]>
Reviewed-by: Dmitri Shuralyov <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
  • Loading branch information
FiloSottile committed Nov 19, 2024
1 parent a332689 commit fb7f4f9
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions src/crypto/internal/fips/nistec/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,15 @@ import (
)

var curves = []struct {
P string
Element string
Params *elliptic.CurveParams
BuildTags string
P string
Element string
Params *elliptic.CurveParams
}{
{
P: "P224",
Element: "fiat.P224Element",
Params: elliptic.P224().Params(),
},
{
P: "P256",
Element: "fiat.P256Element",
Params: elliptic.P256().Params(),
BuildTags: "(!amd64 && !arm64 && !ppc64le && !s390x) || purego",
},
{
P: "P384",
Element: "fiat.P384Element",
Expand Down Expand Up @@ -86,7 +79,6 @@ func main() {
if err := t.Execute(buf, map[string]interface{}{
"P": c.P, "p": p, "B": B, "Gx": Gx, "Gy": Gy,
"Element": c.Element, "ElementLen": elementLen,
"BuildTags": c.BuildTags,
}); err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -145,10 +137,6 @@ const tmplNISTEC = `// Copyright 2022 The Go Authors. All rights reserved.
// Code generated by generate.go. DO NOT EDIT.
{{ if .BuildTags }}
//go:build {{ .BuildTags }}
{{ end }}
package nistec
import (
Expand Down

0 comments on commit fb7f4f9

Please sign in to comment.