const crypto/sha1.Size
29 uses
crypto/sha1 (current package)
sha1.go#L23: const Size = 20
sha1.go#L118: func (d *digest) Size() int { return Size }
sha1.go#L154: func (d *digest) checkSum() [Size]byte {
sha1.go#L176: var digest [Size]byte
sha1.go#L194: func (d *digest) constSum() [Size]byte {
sha1.go#L224: var digest [Size]byte
sha1.go#L256: func Sum(data []byte) [Size]byte {
crypto/tls
key_agreement.go#L118: md5sha1 := make([]byte, md5.Size+sha1.Size)
prf.go#L204: out := make([]byte, 0, md5.Size+sha1.Size)
github.com/gotd/td/internal/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 {
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:]
|
The pages are generated with Golds v0.6.7. (GOOS=linux 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. |