mirror of
https://github.com/golang/go
synced 2024-11-23 00:10:07 -07:00
crypto/internal/fips/nistec: remove P-256 from generate.go
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 <dmitshur@golang.org> Reviewed-by: Roland Shoemaker <roland@golang.org> Auto-Submit: Filippo Valsorda <filippo@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
a332689620
commit
fb7f4f9702
@ -26,22 +26,15 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var curves = []struct {
|
var curves = []struct {
|
||||||
P string
|
P string
|
||||||
Element string
|
Element string
|
||||||
Params *elliptic.CurveParams
|
Params *elliptic.CurveParams
|
||||||
BuildTags string
|
|
||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
P: "P224",
|
P: "P224",
|
||||||
Element: "fiat.P224Element",
|
Element: "fiat.P224Element",
|
||||||
Params: elliptic.P224().Params(),
|
Params: elliptic.P224().Params(),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
P: "P256",
|
|
||||||
Element: "fiat.P256Element",
|
|
||||||
Params: elliptic.P256().Params(),
|
|
||||||
BuildTags: "(!amd64 && !arm64 && !ppc64le && !s390x) || purego",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
P: "P384",
|
P: "P384",
|
||||||
Element: "fiat.P384Element",
|
Element: "fiat.P384Element",
|
||||||
@ -86,7 +79,6 @@ func main() {
|
|||||||
if err := t.Execute(buf, map[string]interface{}{
|
if err := t.Execute(buf, map[string]interface{}{
|
||||||
"P": c.P, "p": p, "B": B, "Gx": Gx, "Gy": Gy,
|
"P": c.P, "p": p, "B": B, "Gx": Gx, "Gy": Gy,
|
||||||
"Element": c.Element, "ElementLen": elementLen,
|
"Element": c.Element, "ElementLen": elementLen,
|
||||||
"BuildTags": c.BuildTags,
|
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
@ -145,10 +137,6 @@ const tmplNISTEC = `// Copyright 2022 The Go Authors. All rights reserved.
|
|||||||
|
|
||||||
// Code generated by generate.go. DO NOT EDIT.
|
// Code generated by generate.go. DO NOT EDIT.
|
||||||
|
|
||||||
{{ if .BuildTags }}
|
|
||||||
//go:build {{ .BuildTags }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
package nistec
|
package nistec
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
Loading…
Reference in New Issue
Block a user