aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/sha1/notboring.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/sha1/notboring.go')
-rw-r--r--src/crypto/sha1/notboring.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/crypto/sha1/notboring.go b/src/crypto/sha1/notboring.go
new file mode 100644
index 0000000000..9726fcd268
--- /dev/null
+++ b/src/crypto/sha1/notboring.go
@@ -0,0 +1,17 @@
+// Copyright 2009 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.
+
+// +build cmd_go_bootstrap
+
+package sha1
+
+import (
+ "hash"
+)
+
+const boringEnabled = false
+
+func boringNewSHA1() hash.Hash { panic("boringcrypto: not available") }
+
+func boringUnreachable() {}