One side of an ephemeral (EC)DHE exchange on a supported group.
Constructors
generate(group : NamedGroup, randomness : HandshakeRandomness) : KeyExchange
Returns a fresh exchange on group.
SourceInstance methods
public_key_bytes
The public key as it goes in a key_share entry.
SourceReturns 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