MCPcopy Index your code
hub / github.com/XTLS/Go / Sum

Method Sum

cipher_suites.go:569–569  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

567func (c *cthWrapper) Reset() { c.h.Reset() }
568func (c *cthWrapper) Write(p []byte) (int, error) { return c.h.Write(p) }
569func (c *cthWrapper) Sum(b []byte) []byte { return c.h.ConstantTimeSum(b) }
570
571func newConstantTimeHash(h func() hash.Hash) func() hash.Hash {
572 return func() hash.Hash {

Callers 1

tls10MACFunction · 0.45

Calls 1

ConstantTimeSumMethod · 0.80

Tested by

no test coverage detected