Struct itsdangerous::key_derivation::DjangoConcat
source · [−]pub struct DjangoConcat;
Expand description
Derives a key by doing digest(salt + "signer" + secret_key)
Trait Implementations
sourceimpl DeriveKey for DjangoConcat
impl DeriveKey for DjangoConcat
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>,
Auto Trait Implementations
impl RefUnwindSafe for DjangoConcat
impl Send for DjangoConcat
impl Sync for DjangoConcat
impl Unpin for DjangoConcat
impl UnwindSafe for DjangoConcat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more