Trait crypto_mac::Mac
[−]
[src]
pub trait Mac { type R: ArrayLength<u8>; fn input(&mut self, data: &[u8]); fn result(self) -> MacResult<Self::R>; fn output_bytes(&self) -> usize { ... } }
The Mac trait defines methods for a Message Authentication function.
Associated Types
Required Methods
fn input(&mut self, data: &[u8])
fn result(self) -> MacResult<Self::R>
Obtain the result of a Mac computation as a MacResult.
Provided Methods
fn output_bytes(&self) -> usize
Get the size of the Mac code, in bytes.
Implementors
impl<D: Digest> Mac for Hmac<D>