type crypto.Hash

55 uses

	crypto (current package)
		crypto.go#L16: type Hash uint
		crypto.go#L19: func (h Hash) HashFunc() Hash {
		crypto.go#L23: func (h Hash) String() string {
		crypto.go#L69: 	MD4         Hash = 1 + iota // import golang.org/x/crypto/md4
		crypto.go#L116: func (h Hash) Size() int {
		crypto.go#L127: func (h Hash) New() hash.Hash {
		crypto.go#L138: func (h Hash) Available() bool {
		crypto.go#L145: func RegisterHash(h Hash, f func() hash.Hash) {
		crypto.go#L206: 	HashFunc() Hash

	crypto/ed25519
		ed25519.go#L105: 	case hash == crypto.Hash(0) && context != "": // Ed25519ctx
		ed25519.go#L112: 	case hash == crypto.Hash(0): // Ed25519
		ed25519.go#L123: 	Hash crypto.Hash
		ed25519.go#L131: func (o *Options) HashFunc() crypto.Hash { return o.Hash }
		ed25519.go#L286: 	case opts.Hash == crypto.Hash(0) && opts.Context != "": // Ed25519ctx
		ed25519.go#L294: 	case opts.Hash == crypto.Hash(0): // Ed25519

	crypto/internal/boring
		notboring.go#L101: func SignRSAPKCS1v15(priv *PrivateKeyRSA, h crypto.Hash, hashed []byte) ([]byte, error) {
		notboring.go#L104: func SignRSAPSS(priv *PrivateKeyRSA, h crypto.Hash, hashed []byte, saltLen int) ([]byte, error) {
		notboring.go#L107: func VerifyRSAPKCS1v15(pub *PublicKeyRSA, h crypto.Hash, hashed, sig []byte) error {
		notboring.go#L110: func VerifyRSAPSS(pub *PublicKeyRSA, h crypto.Hash, hashed, sig []byte, saltLen int) error {

	crypto/rsa
		pkcs1v15.go#L264: var hashPrefixes = map[crypto.Hash][]byte{
		pkcs1v15.go#L287: func SignPKCS1v15(random io.Reader, priv *PrivateKey, hash crypto.Hash, hashed []byte) ([]byte, error) {
		pkcs1v15.go#L324: func VerifyPKCS1v15(pub *PublicKey, hash crypto.Hash, hashed []byte, sig []byte) error {
		pkcs1v15.go#L377: func pkcs1v15HashInfo(hash crypto.Hash, inLen int) (hashLen int, prefix []byte, err error) {
		pss.go#L210: func signPSSWithSalt(priv *PrivateKey, hash crypto.Hash, hashed, salt []byte) ([]byte, error) {
		pss.go#L266: 	Hash crypto.Hash
		pss.go#L270: func (opts *PSSOptions) HashFunc() crypto.Hash {
		pss.go#L292: func SignPSS(rand io.Reader, priv *PrivateKey, hash crypto.Hash, digest []byte, opts *PSSOptions) ([]byte, error) {
		pss.go#L341: func VerifyPSS(pub *PublicKey, hash crypto.Hash, digest []byte, sig []byte, opts *PSSOptions) error {
		rsa.go#L73: 	Hash crypto.Hash
		rsa.go#L77: 	MGFHash crypto.Hash

	crypto/sha512
		sha512.go#L88: 	function crypto.Hash

	crypto/tls
		auth.go#L22: func verifyHandshakeSignature(sigType uint8, pubkey crypto.PublicKey, hashFunc crypto.Hash, signed, sig []byte) error {
		auth.go#L81: func signedMessage(sigHash crypto.Hash, context string, transcript hash.Hash) []byte {
		auth.go#L98: func typeAndHashFromSignatureScheme(signatureAlgorithm SignatureScheme) (sigType uint8, hash crypto.Hash, err error) {
		auth.go#L131: func legacyTypeAndHashFromPublicKey(pub crypto.PublicKey) (sigType uint8, hash crypto.Hash, err error) {
		cipher_suites.go#L198: 	hash   crypto.Hash
		common.go#L194: var directSigning crypto.Hash = 0
		handshake_client.go#L677: 		var sigHash crypto.Hash
		handshake_server.go#L703: 		var sigHash crypto.Hash
		handshake_server_tls13.go#L397: func cloneHash(in hash.Hash, h crypto.Hash) hash.Hash {
		key_agreement.go#L132: func hashForServerKeyExchange(sigType uint8, hashFunc crypto.Hash, version uint16, slices ...[]byte) []byte {
		key_agreement.go#L207: 	var sigHash crypto.Hash
		key_agreement.go#L322: 	var sigHash crypto.Hash
		prf.go#L88: func prfAndHashForVersion(version uint16, suite *cipherSuite) (func(result, secret, label, seed []byte), crypto.Hash) {
		prf.go#L91: 		return prf10, crypto.Hash(0)
		prf.go#L227: func (h finishedHash) hashForClientCertificate(sigType uint8, hashAlg crypto.Hash) []byte {

	crypto/x509
		x509.go#L360: 	hash       crypto.Hash
		x509.go#L362: 	{MD2WithRSA, "MD2-RSA", oidSignatureMD2WithRSA, RSA, crypto.Hash(0) /* no value for MD2 */},
		x509.go#L378: 	{PureEd25519, "Ed25519", oidSignatureEd25519, Ed25519, crypto.Hash(0) /* no pre-hashing */},
		x509.go#L388: var hashToPSSParameters = map[crypto.Hash]asn1.RawValue{
		x509.go#L877: 	var hashType crypto.Hash
		x509.go#L888: 	case crypto.Hash(0):
		x509.go#L1408: func signingParamsForPublicKey(pub any, requestedSigAlgo SignatureAlgorithm) (hashFunc crypto.Hash, sigAlgo pkix.AlgorithmIdentifier, err error) {
		x509.go#L1937: 	var hashFunc crypto.Hash