MCPcopy Create free account
hub / github.com/RustCrypto/utils / finalize_reset

Method finalize_reset

digest-io/src/reader.rs:102–104  ·  view source on GitHub ↗

Retrieve result and reset hasher instance.

(&mut self)

Source from the content-addressed store, hash-verified

100impl<D: Digest + FixedOutputReset, R: io::Read> HashReader<D, R> {
101 /// Retrieve result and reset hasher instance.
102 pub fn finalize_reset(&mut self) -> Output<D> {
103 Digest::finalize_reset(&mut self.hasher)
104 }
105
106 /// Rrite result into provided array and reset the hasher instance.
107 pub fn finalize_into_reset(&mut self, out: &mut Output<D>) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected