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

Function tls10MAC

cipher_suites.go:578–588  ·  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

576
577// tls10MAC implements the TLS 1.0 MAC function. RFC 2246, Section 6.2.3.
578func tls10MAC(h hash.Hash, out, seq, header, data, extra []byte) []byte {
579 h.Reset()
580 h.Write(seq)
581 h.Write(header)
582 h.Write(data)
583 res := h.Sum(out)
584 if extra != nil {
585 h.Write(extra)
586 }
587 return res
588}
589
590func rsaKA(version uint16) keyAgreement {
591 return rsaKeyAgreement{}

Callers 2

decryptMethod · 0.85
encryptMethod · 0.85

Calls 3

ResetMethod · 0.80
WriteMethod · 0.45
SumMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…