tls10MAC implements the TLS 1.0 MAC function. RFC 2246, Section 6.2.3.
(h hash.Hash, out, seq, header, data, extra []byte)
| 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 { |
| 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 | |
| 606 | func rsaKA(version uint16) keyAgreement { |
| 607 | return rsaKeyAgreement{} |