const crypto/sha1.Size
19 uses
crypto/sha1 (current package)
sha1.go#L23: const Size = 20
sha1.go#L127: func (d *digest) Size() int { return Size }
sha1.go#L161: func (d *digest) checkSum() [Size]byte {
sha1.go#L181: var digest [Size]byte
sha1.go#L199: func (d *digest) constSum() [Size]byte {
sha1.go#L229: var digest [Size]byte
sha1.go#L261: func Sum(data []byte) [Size]byte {
crypto/tls
key_agreement.go#L94: md5sha1 := make([]byte, md5.Size+sha1.Size)
prf.go#L195: out := make([]byte, 0, md5.Size+sha1.Size)
github.com/evanw/esbuild/internal/bundler
bundler.go#L870: func hashForFileName(hashBytes [sha1.Size]byte) string {
linker.go#L4640: var hashBytes [sha1.Size]byte
golang.org/x/crypto/openpgp/packet
private_key.go#L254: if len(data) < sha1.Size {
private_key.go#L258: h.Write(data[:len(data)-sha1.Size])
private_key.go#L260: if !bytes.Equal(sum, data[len(data)-sha1.Size:]) {
private_key.go#L263: data = data[:len(data)-sha1.Size]
symmetrically_encrypted.go#L103: const mdcTrailerSize = 1 /* tag byte */ + 1 /* length byte */ + sha1.Size
symmetrically_encrypted.go#L198: if ser.trailer[0] != mdcPacketTagByte || ser.trailer[1] != sha1.Size {
symmetrically_encrypted.go#L227: buf[1] = sha1.Size
golang.org/x/crypto/ssh/knownhosts
knownhosts.go#L468: salt := make([]byte, sha1.Size)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |