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

Process input data.

Arguments

  • data - The input data to process.

Obtain the result of a Mac computation as a MacResult.

Provided Methods

Get the size of the Mac code, in bytes.

Implementors