[−][src]Trait hpke::kex::KeyExchange
This trait captures the requirements of a key exchange mechanism. It must have a way to
generate keypairs, perform the KEX computation, and serialize/deserialize KEX pubkeys. Most of
this functionality is hidden, though. Use Kem::derive_keypair
or Kem::gen_keypair
to make
a keypair.
Associated Types
type PublicKey: Clone + Serializable + Deserializable
The key exchange's public key type. If you want to generate a keypair, see
Kem::gen_keypair
or Kem::derive_keypair
type PrivateKey: Clone + Serializable + Deserializable
The key exchange's private key type. If you want to generate a keypair, see
Kem::gen_keypair
or Kem::derive_keypair