()
| 1657 | } |
| 1658 | |
| 1659 | func (m *clientKeyExchangeMsg) marshal() ([]byte, error) { |
| 1660 | length := len(m.ciphertext) |
| 1661 | x := make([]byte, length+4) |
| 1662 | x[0] = typeClientKeyExchange |
| 1663 | x[1] = uint8(length >> 16) |
| 1664 | x[2] = uint8(length >> 8) |
| 1665 | x[3] = uint8(length) |
| 1666 | copy(x[4:], m.ciphertext) |
| 1667 | |
| 1668 | return x, nil |
| 1669 | } |
| 1670 | |
| 1671 | func (m *clientKeyExchangeMsg) unmarshal(data []byte) bool { |
| 1672 | if len(data) < 4 { |
nothing calls this directly
no outgoing calls
no test coverage detected