class

Beryl::TLS::Messages::ClientHello

Inherits Beryl::TLS::Messages::HasExtensions < Reference < Object

ClientHello (RFC 9846 §4.1.2).

Constructors

decode(body : Bytes) : ClientHello
Source
new(random : Bytes, legacy_session_id : Bytes, list_of_cipher_suites : Array(UInt16), list_of_extensions : Array(Extension))
Source

Class methods

binder_prefix_bytesize(message : Bytes, binders : Array(Bytes)) : Int32

The size of the message, header included, up to the binders of its pre_shared_key extension (the part a PSK binder covers, §4.2.11.2). The extension is last, so its binders list closes the message.

Source

Instance methods

encode

Returns the whole message, header included.

Source
legacy_compression_methods
Source
legacy_compression_methods=(legacy_compression_methods : Bytes)
Source
legacy_session_id
Source
legacy_session_id=(legacy_session_id : Bytes)
Source
legacy_version
Source
legacy_version=(legacy_version : UInt16)
Source
list_of_cipher_suites
Source
list_of_cipher_suites=(list_of_cipher_suites : Array(UInt16))
Source
list_of_extensions
Source
list_of_extensions=(list_of_extensions : Array(Extension))
Source
random
Source
random=(random : Bytes)
Source