diff options
Diffstat (limited to 'src/crypto/sha1/notboring.go')
-rw-r--r-- | src/crypto/sha1/notboring.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/crypto/sha1/notboring.go b/src/crypto/sha1/notboring.go index 2412c9062d..42ef87937f 100644 --- a/src/crypto/sha1/notboring.go +++ b/src/crypto/sha1/notboring.go @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build cmd_go_bootstrap -// +build cmd_go_bootstrap +//go:build cmd_go_bootstrap || !cgo +// +build cmd_go_bootstrap !cgo package sha1 @@ -16,3 +16,5 @@ const boringEnabled = false func boringNewSHA1() hash.Hash { panic("boringcrypto: not available") } func boringUnreachable() {} + +func boringSHA1([]byte) [20]byte { panic("boringcrypto: not available") } |