MCPcopy Index your code
hub / github.com/XTLS/REALITY / tls10MAC

Function tls10MAC

cipher_suites.go:594–604  ·  view source on GitHub ↗

tls10MAC implements the TLS 1.0 MAC function. RFC 2246, Section 6.2.3.

(h hash.Hash, out, seq, header, data, extra []byte)

Source from the content-addressed store, hash-verified

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 {
595 h.Reset()
596 h.Write(seq)
597 h.Write(header)
598 h.Write(data)
599 res := h.Sum(out)
600 if extra != nil {
601 h.Write(extra)
602 }
603 return res
604}
605
606func rsaKA(version uint16) keyAgreement {
607 return rsaKeyAgreement{}

Callers 2

decryptMethod · 0.85
encryptMethod · 0.85

Calls 3

ResetMethod · 0.80
WriteMethod · 0.65
SumMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…