class

Beryl::TLS::Secp256r1Exchange

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

secp256r1 with uncompressed points (§4.2.8.2).

Constructors

new(private_key : Crypto::V1::P256::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