// WriteHandshake appends |msg| to the hash, which must be a serialized
// handshake message with a TLS header. In DTLS, the header is rewritten to a
// DTLS header with |seqno| as the sequence number.

WriteHandshake appends |msg| to the hash, which must be a serialized
handshake message with a TLS header. In DTLS, the header is rewritten to a
DTLS header with |seqno| as the sequence number.
// WriteHandshake appends |msg| to the hash which must be a serialized // handshake message with a TLS header . In DTLS the header is rewritten to a // DTLS header with |seqno| as the sequence number .
func (h *finishedHash) WriteHandshake(msg []byte, seqno uint16) {
	if h.isDTLS {
		h.Write(msg[:4])
		h.Write([]byte{byte(seqno >> 8), byte(seqno), 0, 0, 0})
		h.Write(msg[1:4])
		h.Write(msg[4:])
	} else {
		h.Write(msg)
	}
}
func ( h * finishedHash ) WriteHandshake ( msg [ ] byte , seqno uint16 ) { if h . isDTLS { h . Write ( msg [ : 4 ] ) h . Write ( [ ] byte { byte ( seqno >> 8 ) , byte ( seqno ) , 0 , 0 , 0 } ) h . Write ( msg [ 1 : 4 ] ) h . Write ( msg [ 4 : ] ) } else { h . Write ( msg ) } }
WriteHandshake appends |msg| to the hash, which must be a serialized
handshake message with a TLS header.
WriteHandshake appends |msg| to the hash which must be a serialized handshake message with a TLS header .
// This is somewhat hacky. DTLS hashes a slightly different format.
 // First, the TLS header.
 // Then the sequence number and reassembled fragment offset (always 0).
 // Then the reassembled fragment (always equal to the message length).
 // And then the message body.
