Trait octavo_mac::Mac [] [src]

pub trait Mac: Sized {
    fn update<D: AsRef<[u8]>>(&mut self, data: D);
    fn output_bits() -> usize;
    fn block_size() -> usize;
    fn result<T>(self, output: T)
    where
        T: AsMut<[u8]>
; fn output_bytes() -> usize { ... } }

Required Methods

Output size in bits

Write resulting hash into output.

output should be big enough to contain whole output.

Panics

If output length is less than MAC::output_bytes.

Provided Methods

Output size in bytes

Implementors