pub struct HmacKey<D: Digest> { /* private fields */ }Expand description
Represents key used to sign content in hmac algorithm.
Comparing to hmac function it allows to pre-compute key and just sign input directly.
Digest is only used in methods, making user to be responsible for using correct algorithm.
Implementations§
Auto Trait Implementations§
impl<D> Freeze for HmacKey<D>
impl<D> RefUnwindSafe for HmacKey<D>
impl<D> Send for HmacKey<D>
impl<D> Sync for HmacKey<D>
impl<D> Unpin for HmacKey<D>
impl<D> UnwindSafe for HmacKey<D>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more