Trait crypto_secretbox::Kdf

source ·
pub trait Kdf {
    // Required method
    fn kdf(key: &Key, nonce: &GenericArray<u8, U16>) -> Key;
}
Expand description

Key derivation function: trait for abstracting over HSalsa20 and HChaCha20.

Required Methods§

source

fn kdf(key: &Key, nonce: &GenericArray<u8, U16>) -> Key

Derive a new key from the provided input key and nonce.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Kdf for Salsa20

source§

fn kdf(key: &Key, nonce: &GenericArray<u8, U16>) -> Key

Implementors§

source§

impl<C> Kdf for SecretBox<C>
where C: Kdf,