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

Function macSHA1

cipher_suites.go:427–429  ·  view source on GitHub ↗

macSHA1 returns a SHA-1 based constant time MAC.

(key []byte)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…