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