Trait sha3::Digest []

pub trait Digest {
    type R: ArrayLength<u8>;
    type B: ArrayLength<u8>;
    fn new() -> Self;
    fn input(&mut self, input: &[u8]);
    fn result(self) -> GenericArray<u8, Self::R>;

    fn block_bytes(&self) -> usize { ... }
    fn block_bits(&self) -> usize { ... }
    fn output_bytes(&self) -> usize { ... }
    fn output_bits(&self) -> usize { ... }
}

The Digest trait specifies an interface common to digest functions

Associated Types

Required Methods

Create new digest instance.

Digest input data. This method can be called repeatedly for use with streaming messages.

Retrieve the digest result. This method consumes digest instance.

Provided Methods

Get the block size in bytes.

Get the block size in bits.

Get the output size in bytes.

Get the output size in bits.

Implementors