aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/elliptic/p256_noasm.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/elliptic/p256_noasm.go')
-rw-r--r--src/crypto/elliptic/p256_noasm.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/crypto/elliptic/p256_noasm.go b/src/crypto/elliptic/p256_noasm.go
new file mode 100644
index 0000000000..380ea66ac3
--- /dev/null
+++ b/src/crypto/elliptic/p256_noasm.go
@@ -0,0 +1,15 @@
+// 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
+// +build !amd64,!s390x,!arm64,!ppc64le
+
+package elliptic
+
+var p256 p256Curve
+
+func initP256Arch() {
+ // Use pure Go constant-time implementation.
+ p256 = p256Curve{p256Params}
+}