github.com/gotd/td/tg.FileHash.Hash (field)
12 uses
github.com/gotd/td/tg (current package)
tl_file_hash_gen.go#L43: Hash []byte
tl_file_hash_gen.go#L67: if !(f.Hash == nil) {
tl_file_hash_gen.go#L91: f.Hash = from.GetHash()
tl_file_hash_gen.go#L149: b.PutBytes(f.Hash)
tl_file_hash_gen.go#L188: f.Hash = value
tl_file_hash_gen.go#L214: return f.Hash
github.com/gotd/td/telegram/downloader
cdn_verify.go#L172: key := make([]byte, 0, len(hash.Hash)+64)
cdn_verify.go#L177: key = append(key, hash.Hash...)
cdn_verify.go#L204: if !bytes.Equal(crypto.SHA256(full.data), hash.Hash) {
cdn_verify.go#L256: if !bytes.Equal(crypto.SHA256(data[from:to]), hash.Hash) {
cdn_verify.go#L268: if !bytes.Equal(crypto.SHA256(data[from:]), hash.Hash) {
verifier.go#L123: return bytes.Equal(crypto.SHA256(data), hash.Hash)
![]() |
The pages are generated with Golds v0.8.4. (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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |