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

Function macSHA256

cipher_suites.go:429–431  ·  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

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.
429func macSHA256(key []byte) hash.Hash {
430 return hmac.New(sha256.New, key)
431}
432
433type aead interface {
434 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…