Trait digest::DigestVariableOutput
[−]
[src]
pub trait DigestVariableOutput { fn variable_result(self, buffer: &mut [u8]) -> VariableResult; }
Trait for returning digest result with the varaible size
Required Methods
fn variable_result(self, buffer: &mut [u8]) -> VariableResult
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.