summaryrefslogtreecommitdiffstats
path: root/src/crypto/elliptic/p256_generic.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/elliptic/p256_generic.go')
-rw-r--r--src/crypto/elliptic/p256_generic.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/crypto/elliptic/p256_generic.go b/src/crypto/elliptic/p256_generic.go
new file mode 100644
index 0000000..7f8fab5
--- /dev/null
+++ b/src/crypto/elliptic/p256_generic.go
@@ -0,0 +1,14 @@
+// Copyright 2016 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+//go:build !amd64 && !s390x && !arm64 && !ppc64le
+
+package elliptic
+
+var p256 p256Curve
+
+func initP256Arch() {
+ // Use pure Go implementation.
+ p256 = p256Curve{p256Params}
+}