Trait crypto_mac::Mac[][src]

pub trait Mac: FromKey + Update + FixedOutput {
    fn finalize(self) -> Output<Self> { ... }
fn finalize_reset(&mut self) -> Output<Self>
    where
        Self: FixedOutputReset
, { ... }
fn verify(self, tag: &[u8]) -> Result<(), MacError> { ... } }

Convinience super-trait covering functionality of Message Authentication algorithms.

Provided methods

fn finalize(self) -> Output<Self>[src]

Obtain the result of a Mac computation as a Output and consume Mac instance.

fn finalize_reset(&mut self) -> Output<Self> where
    Self: FixedOutputReset
[src]

Obtain the result of a Mac computation as a Output and reset Mac instance.

fn verify(self, tag: &[u8]) -> Result<(), MacError>[src]

Check if tag/code value is correct for the processed input.

Loading content...

Implementors

impl<T: FromKey + Update + FixedOutput> Mac for T[src]

Loading content...