Skip to main content

FromKeyDerivation

Trait FromKeyDerivation 

Source
pub trait FromKeyDerivation {
    // Required method
    fn from_key_derivation<D: KeyDerivation>(derive: D) -> Result<Self, Error>
       where Self: Sized;
}
Expand description

Trait for instantiation from a key derivation

Required Methods§

Source

fn from_key_derivation<D: KeyDerivation>(derive: D) -> Result<Self, Error>
where Self: Sized,

Create a new instance of a key from a key derivation

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<L: ArrayLength<u8>> FromKeyDerivation for ArrayKey<L>

Source§

impl<T: AesType> FromKeyDerivation for AesKey<T>

Available on crate feature aes only.
Source§

impl<T: Chacha20Type> FromKeyDerivation for Chacha20Key<T>

Available on crate feature chacha only.