KeyDerivation

Trait KeyDerivation 

Source
pub trait KeyDerivation {
    // Required method
    fn derive_key_bytes(&mut self, key_output: &mut [u8]) -> Result<(), Error>;
}
Expand description

Trait implemented by key derivation methods

Required Methods§

Source

fn derive_key_bytes(&mut self, key_output: &mut [u8]) -> Result<(), Error>

Derive the raw bytes of a key from this KDF

Implementors§

Source§

impl KeyDerivation for Argon2<'_>

Available on crate feature argon2 only.
Source§

impl<Key: KeyExchange + ?Sized> KeyDerivation for Ecdh1PU<'_, Key>

Source§

impl<Key: KeyExchange + ?Sized> KeyDerivation for EcdhEs<'_, Key>