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§
Sourcefn from_key_derivation<D: KeyDerivation>(derive: D) -> Result<Self, Error>where
Self: Sized,
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§
impl<L: ArrayLength<u8>> FromKeyDerivation for ArrayKey<L>
impl<T: AesType> FromKeyDerivation for AesKey<T>
Available on crate feature
aes only.impl<T: Chacha20Type> FromKeyDerivation for Chacha20Key<T>
Available on crate feature
chacha only.