Trait askar_crypto::kdf::FromKeyExchange[][src]

pub trait FromKeyExchange<Lhs: ?Sized, Rhs: ?Sized>: Sized {
    fn from_key_exchange(lhs: &Lhs, rhs: &Rhs) -> Result<Self, Error>;
}
Expand description

Trait for instantiation from a key exchange

Required methods

fn from_key_exchange(lhs: &Lhs, rhs: &Rhs) -> Result<Self, Error>[src]

Expand description

Derive an instance of this key directly from a supported key exchange

Loading content...

Implementors

impl<Lhs: ?Sized, Rhs, T> FromKeyExchange<Lhs, Rhs> for AesKey<T> where
    Lhs: KeyExchange<Rhs>,
    Rhs: ?Sized,
    T: AesType
[src]

This is supported on crate feature aes only.

fn from_key_exchange(lhs: &Lhs, rhs: &Rhs) -> Result<Self, Error>[src]

impl<Lhs: ?Sized, Rhs, T> FromKeyExchange<Lhs, Rhs> for Chacha20Key<T> where
    Lhs: KeyExchange<Rhs>,
    Rhs: ?Sized,
    T: Chacha20Type
[src]

This is supported on crate feature chacha only.

fn from_key_exchange(lhs: &Lhs, rhs: &Rhs) -> Result<Self, Error>[src]

Loading content...