Trait octavo_digest::Digest [] [src]

pub trait Digest: Clone {
    type OutputBits: Unsigned + ArrayLength<u8>;
    type OutputBytes: Unsigned + ArrayLength<u8>;
    type BlockSize: Unsigned + ArrayLength<u8>;
    fn update<T>(&mut self, input: T)
    where
        T: AsRef<[u8]>
; fn result<T>(self, output: T)
    where
        T: AsMut<[u8]>
; fn output_bits() -> usize { ... } fn output_bytes() -> usize { ... } fn block_size() -> usize { ... } }

Hash function digest definition

Associated Types

Output size in bits

Output size in bytes

Block size in bytes

Required Methods

Update digest with data.

Write resulting hash into output.

output should be big enough to contain whole output.

Panics

If output length is less than Digest::output_bytes.

Provided Methods

Output size in bits

Output size in bytes

Block size in bytes

Implementors