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