)
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",
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)
}
// Code generated by generate.go. DO NOT EDIT.
-{{ if .BuildTags }}
-//go:build {{ .BuildTags }}
-{{ end }}
-
package nistec
import (