module

Beryl::TLS::Messages

Constants

HELLO_RETRY_REQUEST_RANDOM = Bytes[207, 33, 173, 116, 229, 154, 97, 17, 190, 29, 140, 2, 30, 101, 184, 145, 194, 162, 17, 22, 122, 187, 140, 94, 7, 158, 9, 226, 200, 168, 51, 156]

The fixed random of a HelloRetryRequest (RFC 9846 §4.1.3): SHA-256 of "HelloRetryRequest".

Class methods

read_extensions(reader : MessageReader) : Array(Extension)

Reads an extensions block (a two-byte length, then entries). A type that appears twice is refused (RFC 9846 §4.2).

Source
unwrap(message : Bytes) : Tuple(HandshakeType | Nil, Bytes)

Returns the type and body of a whole handshake message (as RecordLayer#read_handshake_message returns it).

Source
wrap(handshake_type : HandshakeType, body : Bytes) : Bytes

Wraps body in a handshake message header.

Source
write_extensions(writer : MessageWriter, list_of_extensions : Array(Extension)) : Nil
Source

Nested types