github.com/twelsh-aw/go/src@v0.0.0-20230516233729-a56fe86a7c81/crypto/sha1/notboring.go (about) 1 // Copyright 2009 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build cmd_go_bootstrap || !cgo 6 // +build cmd_go_bootstrap !cgo 7 8 package sha1 9 10 import ( 11 "hash" 12 ) 13 14 const boringEnabled = false 15 16 func boringNewSHA1() hash.Hash { panic("boringcrypto: not available") } 17 18 func boringUnreachable() {} 19 20 func boringSHA1([]byte) [20]byte { panic("boringcrypto: not available") }