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