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
fn update<D: AsRef<[u8]>>(&mut self, data: D)
fn output_bits() -> usize
Output size in bits
fn block_size() -> usize
fn result<T>(self, output: T) where T: AsMut<[u8]>
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
fn output_bytes() -> usize
Output size in bytes