hash.Hash32.Sum (method)
63 uses
hash (current package)
hash.go#L33: Sum(b []byte) []byte
crypto/ecdsa
ecdsa.go#L436: key := md.Sum(nil)[:32] // and compute ChopMD-256(SHA-512),
crypto/ed25519
ed25519.go#L229: messageDigest = mh.Sum(messageDigest)
ed25519.go#L247: hramDigest = kh.Sum(hramDigest)
ed25519.go#L328: hramDigest = kh.Sum(hramDigest)
crypto/hmac
hmac.go#L58: in = h.inner.Sum(in)
hmac.go#L69: return h.outer.Sum(in[:origLen])
hmac.go#L159: key = hm.outer.Sum(nil)
crypto/rsa
pss.go#L76: h = hash.Sum(h[:0])
pss.go#L197: h0 := hash.Sum(nil)
rsa.go#L462: digest = hash.Sum(digest[:0])
rsa.go#L542: lHash := hash.Sum(nil)
rsa.go#L740: lHash := hash.Sum(nil)
crypto/tls
auth.go#L86: b.Write(transcript.Sum(nil))
auth.go#L92: h.Write(transcript.Sum(nil))
auth.go#L93: return h.Sum(nil)
cipher_suites.go#L589: res := h.Sum(out)
handshake_client_tls13.go#L195: chHash := hs.transcript.Sum(nil)
handshake_server_tls13.go#L478: chHash := hs.transcript.Sum(nil)
key_agreement.go#L112: return hsha1.Sum(nil)
key_agreement.go#L123: copy(md5sha1, hmd5.Sum(nil))
key_agreement.go#L145: digest := h.Sum(nil)
key_schedule.go#L74: return c.expandLabel(secret, label, transcript.Sum(nil), c.hash.Size())
key_schedule.go#L104: verifyData.Write(transcript.Sum(nil))
key_schedule.go#L105: return verifyData.Sum(nil)
key_schedule.go#L116: return c.expandLabel(secret, "exporter", h.Sum(nil), length), nil
prf.go#L30: a := h.Sum(nil)
prf.go#L37: b := h.Sum(nil)
prf.go#L43: a = h.Sum(nil)
prf.go#L201: return h.client.Sum(nil)
prf.go#L205: out = h.clientMD5.Sum(out)
prf.go#L206: return h.client.Sum(out)
prf.go#L239: return hash.Sum(nil)
prf.go#L243: return h.server.Sum(nil)
ticket.go#L342: mac.Sum(macBytes[:0])
ticket.go#L377: expected := mac.Sum(nil)
crypto/x509
pem_decrypt.go#L92: digest = hash.Sum(digest[:0])
x509.go#L909: signed = h.Sum(nil)
x509.go#L1636: signed = h.Sum(nil)
x509.go#L1758: signed = h.Sum(nil)
x509.go#L2069: signed = h.Sum(nil)
x509.go#L2432: input = h.Sum(nil)
github.com/gotd/td/internal/crypto
keys.go#L45: return h.Sum(r)
keys.go#L64: return h.Sum(r)
keys.go#L76: return h.Sum(r)
keys_old.go#L18: return h.Sum(r)
keys_old.go#L31: return h.Sum(r)
keys_old.go#L43: return h.Sum(r)
keys_old.go#L55: return h.Sum(r)
rsa_fingerprint.go#L25: result := h.Sum(nil)[12:sha1.Size]
rsa_pad.go#L74: dataWithHash = h.Sum(dataWithHash)
rsa_pad.go#L157: if !bytes.Equal(hash, h.Sum(nil)) {
sha256.go#L16: return h.Sum(nil)
github.com/gotd/td/internal/crypto/srp
hash.go#L92: return h.Sum(nil)
github.com/gotd/td/internal/mtproxy/faketls
client_hello.go#L113: s := mac.Sum(nil)
server_hello.go#L60: if !bytes.Equal(mac.Sum(nil), originalDigest[:]) {
github.com/gotd/td/session/tdesktop
file.go#L130: h.Sum(r[:0])
local_key.go#L41: key := pbkdf2.Key(h.Sum(nil), salt, iters, len(r), sha512.New)
golang.org/x/crypto/pbkdf2
pbkdf2.go#L61: dk = prf.Sum(dk)
pbkdf2.go#L70: U = prf.Sum(U)
nhooyr.io/websocket
accept.go#L351: return base64.StdEncoding.EncodeToString(h.Sum(nil))
vendor/golang.org/x/crypto/hkdf
hkdf.go#L32: return extractor.Sum(nil)
hkdf.go#L63: f.prev = f.expander.Sum(f.prev[:0])
|
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. |