const crypto/sha1.Size

38 uses

	crypto/sha1 (current package)
		sha1.go#L25: const Size = 20
		sha1.go#L124: func (d *digest) Size() int { return Size }
		sha1.go#L163: func (d *digest) checkSum() [Size]byte {
		sha1.go#L189: 	var digest [Size]byte
		sha1.go#L207: func (d *digest) constSum() [Size]byte {
		sha1.go#L241: 	var digest [Size]byte
		sha1.go#L273: func Sum(data []byte) [Size]byte {

	crypto/tls
		key_agreement.go#L119: 	md5sha1 := make([]byte, md5.Size+sha1.Size)
		prf.go#L207: 	out := make([]byte, 0, md5.Size+sha1.Size)

	github.com/gotd/td/crypto
		data_with_hash.go#L13: 	if len(dataWithHash) <= sha1.Size {
		data_with_hash.go#L18: 	v := dataWithHash[:sha1.Size]
		data_with_hash.go#L20: 		if len(dataWithHash)-i < sha1.Size {
		data_with_hash.go#L24: 		data := dataWithHash[sha1.Size : len(dataWithHash)-i]
		data_with_hash.go#L47: 	dataWithHash := make([]byte, paddedLen16(len(data)+sha1.Size))
		data_with_hash.go#L50: 	copy(dataWithHash[sha1.Size:], data)
		data_with_hash.go#L51: 	if _, err := io.ReadFull(randomSource, dataWithHash[sha1.Size+len(data):]); err != nil {
		kdf_v1.go#L24: 	r := make([]byte, sha1.Size*4)
		kdf_v1.go#L28: 	b := sha1b(r[sha1.Size:sha1.Size], authKey, msgKey, 0)
		kdf_v1.go#L29: 	c := sha1c(r[2*sha1.Size:2*sha1.Size], authKey, msgKey, 0)
		kdf_v1.go#L30: 	d := sha1d(r[3*sha1.Size:3*sha1.Size], authKey, msgKey, 0)
		keys_old.go#L91: 	r := make([]byte, sha1.Size*4)
		keys_old.go#L94: 	b := sha1b(r[sha1.Size:sha1.Size], authKey, msgKey, x)
		keys_old.go#L95: 	c := sha1c(r[2*sha1.Size:2*sha1.Size], authKey, msgKey, x)
		keys_old.go#L96: 	d := sha1d(r[3*sha1.Size:3*sha1.Size], authKey, msgKey, x)
		rsa.go#L20: 	rsaDataLen     = rsaWithHashLen - sha1.Size
		rsa_fingerprint.go#L25: 	result := h.Sum(nil)[12:sha1.Size]
		rsa_hashed.go#L30: 	copy(dataWithHash[:sha1.Size], h[:])
		rsa_hashed.go#L32: 	copy(dataWithHash[sha1.Size:], data)
		rsa_hashed.go#L47: 	hash := dataWithHash[:sha1.Size]
		rsa_hashed.go#L48: 	paddedData := dataWithHash[sha1.Size:]

	github.com/refraction-networking/utls
		key_agreement.go#L118: 	md5sha1 := make([]byte, md5.Size+sha1.Size)
		prf.go#L208: 	out := make([]byte, 0, md5.Size+sha1.Size)