crypto.Hash.New (method)

47 uses

	crypto (current package)
		crypto.go#L127: func (h Hash) New() hash.Hash {

	crypto/rsa
		pss.go#L212: 	em, err := emsaPSSEncode(hashed, emBits, salt, hash.New())
		pss.go#L302: 	return emsaPSSVerify(digest, em, emBits, opts.saltLength(), hash.New())
		rsa.go#L162: 		return DecryptOAEP(opts.Hash.New(), rand, priv, ciphertext, opts.Label)

	crypto/tls
		auth.go#L89: 	h := sigHash.New()
		handshake_client.go#L341: 	transcript := cipherSuite.hash.New()
		handshake_client_tls13.go#L58: 	hs.transcript = hs.suite.hash.New()
		handshake_client_tls13.go#L247: 			transcript := hs.suite.hash.New()
		handshake_server_tls13.go#L183: 	hs.transcript = hs.suite.hash.New()
		handshake_server_tls13.go#L353: 	out := h.New()
		key_agreement.go#L117: 		h := hashFunc.New()
		key_schedule.go#L46: 	n, err := hkdf.Expand(c.hash.New, secret, hkdfLabel.BytesOrPanic()).Read(out)
		key_schedule.go#L56: 		transcript = c.hash.New()
		key_schedule.go#L66: 	return hkdf.Extract(c.hash.New, newSecret, currentSecret)
		key_schedule.go#L87: 	verifyData := hmac.New(c.hash.New, finishedKey)
		key_schedule.go#L98: 		h := c.hash.New()
		prf.go#L151: 		return finishedHash{hash.New(), hash.New(), nil, nil, buffer, version, prf}
		prf.go#L228: 		hash := hashAlg.New()

	crypto/x509
		x509.go#L834: 		h := hashType.New()
		x509.go#L2214: 		h := hashFunc.New()
		x509.go#L2337: 		h := hashFunc.New()
		x509.go#L2640: 		h := hashFunc.New()
		x509.go#L2843: 		h := hashFunc.New()

	golang.org/x/crypto/openpgp
		read.go#L288: 	h := hashId.New()
		write.go#L250: 		return signatureWriter{payload, literalData, hash, hash.New(), signer, config}, nil

	golang.org/x/crypto/openpgp/packet
		public_key.go#L600: 	h = hashFunc.New()
		public_key.go#L645: 	h = hashFunc.New()
		public_key.go#L670: 	h = hashFunc.New()
		public_key_v3.go#L247: 	h = hfn.New()

	golang.org/x/crypto/openpgp/s2k
		s2k.go#L171: 	h := hash.New()
		s2k.go#L222: 	Iterated(key, c.hash().New(), passphrase, salt, count)

	golang.org/x/crypto/ssh
		kex.go#L135: 	h := hashFunc.New()
		kex.go#L182: 	h := hashFunc.New()
		kex.go#L257: 	h := ecHash(kex.curve).New()
		kex.go#L348: 	h := ecHash(kex.curve).New()
		kex.go#L469: 	h := crypto.SHA256.New()
		kex.go#L517: 	h := crypto.SHA256.New()
		kex.go#L647: 	h := gex.hashFunc.New()
		kex.go#L742: 	h := gex.hashFunc.New()
		keys.go#L395: 	h := hash.New()
		keys.go#L469: 	h := crypto.SHA1.New()
		keys.go#L510: 	h := crypto.SHA1.New()
		keys.go#L674: 	h := ecHash(k.Curve).New()
		keys.go#L778: 	h := ecHash(k.Curve).New()
		keys.go#L1004: 		h := hashFunc.New()
		transport.go#L259: 	h := r.Hash.New()