Struct hmac::SimpleHmac [−][src]
pub struct SimpleHmac<D: Digest + BlockSizeUser> { /* fields omitted */ }Expand description
Simplified HMAC instance able to operate over hash functions which do not expose block-level API and hash functions which process blocks lazily (e.g. BLAKE2).
Trait Implementations
Consume value and write result into provided array.
Retrieve result and consume the hasher instance.
type KeySize = D::BlockSize
type KeySize = D::BlockSize
Key size in bytes.
type OutputSize = D::OutputSize
type OutputSize = D::OutputSize
Size of the output in bytes.
Auto Trait Implementations
impl<D> RefUnwindSafe for SimpleHmac<D> where
D: RefUnwindSafe,
<<D as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<D> Send for SimpleHmac<D> where
D: Send,
impl<D> Sync for SimpleHmac<D> where
D: Sync,
impl<D> Unpin for SimpleHmac<D> where
D: Unpin,
<<D as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: Unpin,
impl<D> UnwindSafe for SimpleHmac<D> where
D: UnwindSafe,
<<D as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Create new value from fixed size key.
Create new value from variable size key.
Check if tag/code value is correct for the processed input.
Check truncated tag correctness using all bytes of calculated tag. Read more
Check truncated tag correctness using left side bytes
(i.e. tag[..n]) of calculated tag. Read more