Trait digest::VariableOutput [] [src]

pub trait VariableOutput {
    fn variable_result(self, buffer: &mut [u8]) -> VariableResult;
}

Trait for returning digest result with the varaible size

Required Methods

Retrieve the digest result into provided buffer. Length of the output equals to the input buffer size. In case of invalid length Err(InvalidLength) will be returned. This method consumes digest instance.

Implementors