[][src]Trait itsdangerous::key_derivation::DeriveKey

pub trait DeriveKey {
    fn derive_key<Digest>(
        secret_key: &str,
        salt: &str
    ) -> GenericArray<u8, Digest::OutputSize>
    where
        Digest: Input + BlockInput + FixedOutput + Reset + Default + Clone,
        Digest::BlockSize: ArrayLength<u8> + Clone,
        Digest::OutputSize: ArrayLength<u8>
; }

This trait is called to derive a key for signing from a given key + salt.

Remarks

Key derivation is not indended to be used as a security method to make a complex key out of a short password. Instead, you should use large random secret keys.

Required methods

fn derive_key<Digest>(
    secret_key: &str,
    salt: &str
) -> GenericArray<u8, Digest::OutputSize> where
    Digest: Input + BlockInput + FixedOutput + Reset + Default + Clone,
    Digest::BlockSize: ArrayLength<u8> + Clone,
    Digest::OutputSize: ArrayLength<u8>, 

Loading content...

Implementors

impl DeriveKey for Concat[src]

impl DeriveKey for DjangoConcat[src]

impl DeriveKey for Hmac[src]

Loading content...