Trait askar_crypto::kdf::FromKeyDerivation [−][src]
pub trait FromKeyDerivation { 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
fn from_key_derivation<D: KeyDerivation>(derive: D) -> Result<Self, Error> where
Self: Sized,
[src]
Self: Sized,
Expand description
Create a new instance of a key from a key derivation
Implementors
impl<L: ArrayLength<u8>> FromKeyDerivation for ArrayKey<L>
[src]
impl<L: ArrayLength<u8>> FromKeyDerivation for ArrayKey<L>
[src]fn from_key_derivation<D: KeyDerivation>(derive: D) -> Result<Self, Error> where
Self: Sized,
[src]
Self: Sized,
impl<T: AesType> FromKeyDerivation for AesKey<T>
[src]
impl<T: AesType> FromKeyDerivation for AesKey<T>
[src]This is supported on crate feature
aes
only.fn from_key_derivation<D: KeyDerivation>(derive: D) -> Result<Self, Error> where
Self: Sized,
[src]
Self: Sized,
impl<T: Chacha20Type> FromKeyDerivation for Chacha20Key<T>
[src]
impl<T: Chacha20Type> FromKeyDerivation for Chacha20Key<T>
[src]This is supported on crate feature
chacha
only.fn from_key_derivation<D: KeyDerivation>(derive: D) -> Result<Self, Error> where
Self: Sized,
[src]
Self: Sized,