[−][src]Trait hmac::Mac
The Mac
trait defines methods for a Message Authentication algorithm.
Associated Types
type OutputSize: ArrayLength<u8>
Output size of the [Mac
]
Required methods
fn update(&mut self, data: &[u8])
Update MAC state with the given data.
fn reset(&mut self)
Reset Mac
instance.
fn finalize(self) -> Output<Self>
Provided methods
fn finalize_reset(&mut self) -> Output<Self>
fn verify(self, tag: &[u8]) -> Result<(), MacError>
Check if tag/code value is correct for the processed input.
Implementors
impl<D> Mac for Hmac<D> where
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,
[src]
D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
D::BlockSize: ArrayLength<u8>,
D::OutputSize: ArrayLength<u8>,