crypto.Hash.Size (method)

33 uses

	crypto (current package)
		crypto.go#L116: func (h Hash) Size() int {

	crypto/ecdsa
		ecdsa.go#L431: 	if h.Size() != len(hash) {

	crypto/rsa
		fips.go#L324: 		if len(hashed) != hash.Size() {
		fips.go#L367: 		if len(hashed) != hash.Size() {

	crypto/tls
		auth.go#L179: 	{PSSWithSHA256, crypto.SHA256.Size()*2 + 2},
		auth.go#L180: 	{PSSWithSHA384, crypto.SHA384.Size()*2 + 2},
		auth.go#L181: 	{PSSWithSHA512, crypto.SHA512.Size()*2 + 2},
		auth.go#L184: 	{PKCS1WithSHA256, 19 + crypto.SHA256.Size() + 11},
		auth.go#L185: 	{PKCS1WithSHA384, 19 + crypto.SHA384.Size() + 11},
		auth.go#L186: 	{PKCS1WithSHA512, 19 + crypto.SHA512.Size() + 11},
		auth.go#L187: 	{PKCS1WithSHA1, 15 + crypto.SHA1.Size() + 11},
		handshake_client.go#L491: 	hello.pskBinders = [][]byte{make([]byte, cipherSuite.hash.Size())}
		handshake_client_tls13.go#L869: 		msg.nonce, cipherSuite.hash.Size())
		handshake_server_tls13.go#L874: 			rsaKey.N.BitLen()/8 < sigHash.Size()*2+2 { // key too small for RSA-PSS
		handshake_server_tls13.go#L979: 		nil, suite.hash.Size())
		key_schedule.go#L25: 	return tls13.ExpandLabel(c.hash.New, trafficSecret, "traffic upd", nil, c.hash.Size())
		key_schedule.go#L39: 	finishedKey := tls13.ExpandLabel(c.hash.New, baseKey, "finished", nil, c.hash.Size())

	github.com/refraction-networking/utls
		auth.go#L155: 	{PSSWithSHA256, crypto.SHA256.Size()*2 + 2, VersionTLS13},
		auth.go#L156: 	{PSSWithSHA384, crypto.SHA384.Size()*2 + 2, VersionTLS13},
		auth.go#L157: 	{PSSWithSHA512, crypto.SHA512.Size()*2 + 2, VersionTLS13},
		auth.go#L161: 	{PKCS1WithSHA256, 19 + crypto.SHA256.Size() + 11, VersionTLS12},
		auth.go#L162: 	{PKCS1WithSHA384, 19 + crypto.SHA384.Size() + 11, VersionTLS12},
		auth.go#L163: 	{PKCS1WithSHA512, 19 + crypto.SHA512.Size() + 11, VersionTLS12},
		auth.go#L164: 	{PKCS1WithSHA1, 15 + crypto.SHA1.Size() + 11, VersionTLS12},
		handshake_client.go#L541: 	hello.pskBinders = [][]byte{make([]byte, cipherSuite.hash.Size())}
		handshake_client_tls13.go#L1061: 		msg.nonce, cipherSuite.hash.Size())
		handshake_server_tls13.go#L874: 			rsaKey.N.BitLen()/8 < sigHash.Size()*2+2 { // key too small for RSA-PSS
		handshake_server_tls13.go#L988: 		nil, suite.hash.Size())
		key_schedule.go#L24: 	return tls13.ExpandLabel(c.hash.New, trafficSecret, "traffic upd", nil, c.hash.Size())
		key_schedule.go#L38: 	finishedKey := tls13.ExpandLabel(c.hash.New, baseKey, "finished", nil, c.hash.Size())
		u_pre_shared_key.go#L153: 		e.Binders = append(e.Binders, make([]byte, e.cipherSuite.hash.Size()))
		u_pre_shared_key.go#L384: 	return c.hash.Size()

	github.com/refraction-networking/utls/internal/hpke
		hpke.go#L205: 	exporterSecret := kdf.LabeledExpand(sid, secret, "exp", ksContext, uint16(kdf.hash.Size()) /* Nh - hash output size of the kdf*/)