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

Function macSHA256

cipher_suites.go:433–435  ·  view source on GitHub ↗

macSHA256 returns a SHA-256 based MAC. This is only supported in TLS 1.2 and is currently only used in disabled-by-default cipher suites.

(key []byte)

Source from the content-addressed store, hash-verified

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.
433func macSHA256(key []byte) hash.Hash {
434 return hmac.New(sha256.New, key)
435}
436
437type aead interface {
438 cipher.AEAD

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…