(h func() hash.Hash)
| 585 | func (c *cthWrapper) Sum(b []byte) []byte { return c.h.ConstantTimeSum(b) } |
| 586 | |
| 587 | func 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. |
| 594 | func tls10MAC(h hash.Hash, out, seq, header, data, extra []byte) []byte { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…