pub trait HashEngine: Clone + Write {
    type MidState;

    fn midstate(&self) -> Self::MidState;

    fn input(&mut self, data: &[u8]) { ... }
}
Expand description

A hashing engine which bytes can be serialized into. It is expected to implement the io::Write trait, but to never return errors under any conditions.

Required Associated Types

Byte array representing the internal state of the hash engine

Required Methods

Outputs the midstate of the hash engine. This function should not be used directly unless you really know what you’re doing.

Provided Methods

Add data to the hash engine without any error return type to deal with

Implementors