pub trait Dh {
    fn name() -> &'static str;
fn generate<RNG>(rng: &mut RNG) -> Self
    where
        RNG: RngCore + CryptoRng
;
fn public(&self) -> PublicKey;
fn dh(&self, public: &PublicKey) -> SharedSecret; }

Required methods

Implementors