MCPcopy Create free account
hub / github.com/XTLS/Go / macSHA1

Function macSHA1

cipher_suites.go:423–425  ·  view source on GitHub ↗

macSHA1 returns a SHA-1 based constant time MAC.

(key []byte)

Source from the content-addressed store, hash-verified

421
422// macSHA1 returns a SHA-1 based constant time MAC.
423func macSHA1(key []byte) hash.Hash {
424 return hmac.New(newConstantTimeHash(sha1.New), key)
425}
426
427// macSHA256 returns a SHA-256 based MAC. This is only supported in TLS 1.2 and
428// is currently only used in disabled-by-default cipher suites.

Callers

nothing calls this directly

Calls 1

newConstantTimeHashFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…