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

Function newConstantTimeHash

cipher_suites.go:587–591  ·  view source on GitHub ↗
(h func() hash.Hash)

Source from the content-addressed store, hash-verified

585func (c *cthWrapper) Sum(b []byte) []byte { return c.h.ConstantTimeSum(b) }
586
587func newConstantTimeHash(h func() hash.Hash) func() hash.Hash {
588 return func() hash.Hash {
589 return &cthWrapper{h().(constantTimeHash)}
590 }
591}
592
593// tls10MAC implements the TLS 1.0 MAC function. RFC 2246, Section 6.2.3.
594func tls10MAC(h hash.Hash, out, seq, header, data, extra []byte) []byte {

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…