Struct hmac::SimpleHmac

source ·
pub struct SimpleHmac<D: Digest + BlockSizeUser> { /* private fields */ }
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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Consume value and write result into provided array.
Retrieve result and consume the hasher instance.
Write result into provided array and reset the hasher state.
Retrieve result and reset the hasher state.
Create new value from fixed size key.
Create new value from variable size key.
Key size in bytes.
Return key size in bytes.
Size of the output in bytes.
Return output size in bytes.
Reset state to its initial value.
Update state using the provided data.
Digest input data in a chained manner.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Digest input data. Read more
Retrieve result and reset hasher instance
Retrieve result and consume boxed hasher instance
Write result into provided array and consume the hasher instance. Read more
Write result into provided array and reset the hasher instance. Read more
Reset hasher instance to its initial state.
Get output size of the hasher
Clone hasher state into a boxed trait object

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Create new value from fixed size key.
Create new value from variable size key.
Update state using the provided data.
Process input data in a chained manner.
Obtain the result of a Mac computation as a CtOutput and consume Mac instance. Read more
Obtain the result of a Mac computation as a CtOutput and reset Mac instance. Read more
Reset MAC instance to its initial state.
Check if tag/code value is correct for the processed input.
Check if tag/code value is correct for the processed input and reset Mac instance. Read more
Check truncated tag correctness using all bytes of calculated tag. Read more
Check truncated tag correctness using all bytes of calculated tag and reset Mac instance. Read more
Check truncated tag correctness using left side bytes (i.e. tag[..n]) of calculated tag. Read more
Check truncated tag correctness using right side bytes (i.e. tag[n..]) of calculated tag. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.