pub struct Hmac<D> { /* fields omitted */ }
Expand description
HMAC context parametrized by the hashing function
Create a new Hmac instance.
- digest - The Digest to use.
- key - The key to use.
Reset the Mac state to begin processing another input stream.
Obtain the result of a Mac computation as a MacResult
.
Obtain the result of a Mac computation as u8. This method should be used very carefully
since incorrect use of the Mac code could result in permitting a timing attack which defeats
the security provided by a Mac function. Read more
Get the size of the Mac code, in bytes.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.