Beryl::TLS::TranscriptHash
The handshake transcript (RFC 9846 §4.4.1): every handshake message, header included, in the order sent and received.
The messages are kept as bytes until the handshake ends, so that the
hash can be chosen after the ServerHello names the suite, and so that
the first ClientHello can be replaced by its message_hash when a
HelloRetryRequest arrives. A handshake transcript is a few kilobytes
(each message is capped at 64 KiB by the record layer), and the hash is
taken about eight times per handshake.
Constructors
Instance methods
Returns the transcript hash of every message added.
Returns the transcript hash as if extra had been added, without adding it (the PSK binder hashes a ClientHello cut before its binders, RFC 9846 §4.2.11.2).
Replaces the transcript, which must hold exactly the first
ClientHello, by the synthetic message_hash message that stands for
it after a HelloRetryRequest (RFC 9846 §4.4.1).