class

Beryl::TLS::HandshakeRandomness

Inherits Reference < Object

Where a handshake gets its random values: the hello randoms, session ids, ephemeral keys, PSS salts, ticket nonces and ages, GREASE values.

Every value comes from Random::Secure. The class is open so that the specs can replay the fixed values of RFC 8448; applications never set it.

Instance methods

generate_p256_key

Returns a new P-256 key.

Source
generate_x25519_key

Returns a new X25519 key.

Source
random_bytes(bytesize : Int32) : Bytes

Returns bytesize random bytes.

Source