[][src]Trait hpke::kex::KeyExchange

pub trait KeyExchange {
    type PublicKey: Clone + Serializable + Deserializable;
    type PrivateKey: Clone + Serializable + Deserializable;
}

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

Loading content...

Implementors

impl KeyExchange for DhP256[src]

impl KeyExchange for X25519[src]

Loading content...