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]

Expand description

Create a new instance of a key from a key derivation

Loading content...

Implementors

impl<L: ArrayLength<u8>> FromKeyDerivation for ArrayKey<L>[src]

fn from_key_derivation<D: KeyDerivation>(derive: D) -> Result<Self, Error> where
    Self: Sized
[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]

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]

Loading content...