type hash.Hash
89 uses
hash (current package)
hash.go#L26: type Hash interface {
hash.go#L50: Hash
hash.go#L56: Hash
hash/fnv
fnv.go#L71: func New128() hash.Hash {
fnv.go#L80: func New128a() hash.Hash {
crypto
crypto.go#L123: var hashes = make([]func() hash.Hash, maxHash)
crypto.go#L127: func (h Hash) New() hash.Hash {
crypto.go#L145: func RegisterHash(h Hash, f func() hash.Hash) {
crypto/hmac
hmac.go#L47: outer, inner hash.Hash
hmac.go#L128: func New(h func() hash.Hash, key []byte) hash.Hash {
crypto/md5
md5.go#L113: func New() hash.Hash {
crypto/rsa
pss.go#L31: func emsaPSSEncode(mHash []byte, emBits int, salt []byte, hash hash.Hash) ([]byte, error) {
pss.go#L106: func emsaPSSVerify(mHash, em []byte, emBits, sLen int, hash hash.Hash) error {
rsa.go#L364: func mgf1XOR(out []byte, hash hash.Hash, seed []byte) {
rsa.go#L410: func EncryptOAEP(hash hash.Hash, random io.Reader, pub *PublicKey, msg []byte, label []byte) ([]byte, error) {
rsa.go#L596: func DecryptOAEP(hash hash.Hash, random io.Reader, priv *PrivateKey, ciphertext []byte, label []byte) ([]byte, error) {
crypto/sha1
sha1.go#L121: func New() hash.Hash {
crypto/sha256
sha256.go#L161: func New() hash.Hash {
sha256.go#L168: func New224() hash.Hash {
crypto/sha512
sha512.go#L213: func New() hash.Hash {
sha512.go#L220: func New512_224() hash.Hash {
sha512.go#L227: func New512_256() hash.Hash {
sha512.go#L234: func New384() hash.Hash {
crypto/tls
auth.go#L81: func signedMessage(sigHash crypto.Hash, context string, transcript hash.Hash) []byte {
cipher_suites.go#L144: mac func(key []byte) hash.Hash
cipher_suites.go#L424: func macSHA1(key []byte) hash.Hash {
cipher_suites.go#L430: func macSHA256(key []byte) hash.Hash {
cipher_suites.go#L556: hash.Hash
cipher_suites.go#L572: func newConstantTimeHash(h func() hash.Hash) func() hash.Hash {
cipher_suites.go#L573: return func() hash.Hash {
cipher_suites.go#L579: func tls10MAC(h hash.Hash, out, seq, header, data, extra []byte) []byte {
conn.go#L169: mac hash.Hash
conn.go#L175: nextMac hash.Hash // next MAC algorithm
conn.go#L200: func (hc *halfConn) prepareCipherSpec(version uint16, cipher any, mac hash.Hash) {
handshake_client.go#L661: var clientHash, serverHash hash.Hash
handshake_client_tls13.go#L34: transcript hash.Hash
handshake_server.go#L685: var clientHash, serverHash hash.Hash
handshake_server_tls13.go#L40: transcript hash.Hash
handshake_server_tls13.go#L324: func cloneHash(in hash.Hash, h crypto.Hash) hash.Hash {
key_schedule.go#L54: func (c *cipherSuiteTLS13) deriveSecret(secret []byte, label string, transcript hash.Hash) []byte {
key_schedule.go#L85: func (c *cipherSuiteTLS13) finishedHash(baseKey []byte, transcript hash.Hash) []byte {
key_schedule.go#L94: func (c *cipherSuiteTLS13) exportKeyingMaterial(masterSecret []byte, transcript hash.Hash) func(string, []byte, int) ([]byte, error) {
prf.go#L27: func pHash(result, secret, seed []byte, hash func() hash.Hash) {
prf.go#L67: func prf12(hashFunc func() hash.Hash) func(result, secret, label, seed []byte) {
prf.go#L160: client hash.Hash
prf.go#L161: server hash.Hash
prf.go#L164: clientMD5 hash.Hash
prf.go#L165: serverMD5 hash.Hash
github.com/aws/aws-sdk-go-v2/aws/signer/v4
v4.go#L489: func makeHash(hash hash.Hash, b []byte) []byte {
github.com/aws/aws-sdk-go-v2/internal/v4a
v4a.go#L478: func makeHash(hash hash.Hash, b []byte) []byte {
github.com/aws/aws-sdk-go-v2/internal/v4a/internal/crypto
ecc.go#L76: func HMACKeyDerivation(hash func() hash.Hash, bitLen int, key []byte, label, context []byte) ([]byte, error) {
github.com/aws/aws-sdk-go-v2/service/internal/checksum
algorithms.go#L82: func NewAlgorithmHash(v Algorithm) (hash.Hash, error) {
algorithms.go#L124: func base64EncodeHashSum(h hash.Hash) []byte {
algorithms.go#L134: func hexEncodeHashSum(h hash.Hash) []byte {
algorithms.go#L160: hasher hash.Hash
algorithms.go#L252: hasher hash.Hash
middleware_compute_input_checksum.go#L400: var sha256Hasher hash.Hash
go.pact.im/x/extraio
hash.go#L11: h hash.Hash
hash.go#L19: func NewStrippedHashReader(h hash.Hash, n int64) io.Reader {
hash.go#L24: func NewHashReader(h hash.Hash) *HashReader {
hash.go#L33: func (r *HashReader) Hash() hash.Hash {
golang.org/x/crypto/argon2
blake2b.go#L17: var b2 hash.Hash
golang.org/x/crypto/blake2b
blake2b.go#L81: func New512(key []byte) (hash.Hash, error) { return newDigest(Size, key) }
blake2b.go#L85: func New384(key []byte) (hash.Hash, error) { return newDigest(Size384, key) }
blake2b.go#L89: func New256(key []byte) (hash.Hash, error) { return newDigest(Size256, key) }
blake2b.go#L99: func New(size int, key []byte) (hash.Hash, error) { return newDigest(size, key) }
register.go#L16: newHash256 := func() hash.Hash {
register.go#L20: newHash384 := func() hash.Hash {
register.go#L25: newHash512 := func() hash.Hash {
golang.org/x/crypto/pbkdf2
pbkdf2.go#L42: func Key(password, salt []byte, iter, keyLen int, h func() hash.Hash) []byte {
golang.org/x/crypto/sha3
hashes.go#L18: func New224() hash.Hash {
hashes.go#L28: func New256() hash.Hash {
hashes.go#L38: func New384() hash.Hash {
hashes.go#L48: func New512() hash.Hash {
hashes.go#L59: func NewLegacyKeccak256() hash.Hash { return &state{rate: 136, outputLen: 32, dsbyte: 0x01} }
hashes.go#L65: func NewLegacyKeccak512() hash.Hash { return &state{rate: 72, outputLen: 64, dsbyte: 0x01} }
hashes_generic.go#L16: func new224Asm() hash.Hash { return nil }
hashes_generic.go#L20: func new256Asm() hash.Hash { return nil }
hashes_generic.go#L24: func new384Asm() hash.Hash { return nil }
hashes_generic.go#L28: func new512Asm() hash.Hash { return nil }
mellium.im/sasl
scram.go#L63: func scram(name string, fn func() hash.Hash) Mechanism {
scram.go#L112: func scramClientNext(name string, fn func() hash.Hash, m *Negotiator, challenge []byte, data interface{}) (more bool, resp []byte, cache interface{}, err error) {
vendor/golang.org/x/crypto/hkdf
hkdf.go#L26: func Extract(hash func() hash.Hash, secret, salt []byte) []byte {
hkdf.go#L36: expander hash.Hash
hkdf.go#L83: func Expand(hash func() hash.Hash, pseudorandomKey, info []byte) io.Reader {
hkdf.go#L90: func New(hash func() hash.Hash, secret, salt, info []byte) io.Reader {