Struct itsdangerous::key_derivation::Hmac
source · [−]pub struct Hmac;
Expand description
Derives a secret key by doing hmac<digest>(secret_key, input=salt)
Trait Implementations
sourceimpl DeriveKey for Hmac
impl DeriveKey for Hmac
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 Hmac
impl Send for Hmac
impl Sync for Hmac
impl Unpin for Hmac
impl UnwindSafe for Hmac
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