class

Beryl::TLS::X25519Exchange

Inherits Beryl::TLS::KeyExchange < Reference < Object

X25519 (RFC 7748).

Constructors

new(private_key : Crypto::V1::X25519::PrivateKey)
Source

Instance methods

public_key_bytes

The public key as it goes in a key_share entry.

Source
shared_secret(peer_key_exchange : Bytes) : Bytes

Returns the shared secret with the peer's peer_key_exchange, or raises illegal_parameter for a key that is malformed or of small order (§4.2.8.2, RFC 7748 §6.1).

Source