diff --git a/src/crypto/internal/fips/nistec/generate.go b/src/crypto/internal/fips/nistec/generate.go index 5f52edda6e0..105ce79d66c 100644 --- a/src/crypto/internal/fips/nistec/generate.go +++ b/src/crypto/internal/fips/nistec/generate.go @@ -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", @@ -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) } @@ -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 (