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

Method finalize_reset

digest-io/src/writer.rs:107–109  ·  view source on GitHub ↗

Retrieve result and reset hasher instance.

(&mut self)

Source from the content-addressed store, hash-verified

105impl<D: Digest + FixedOutputReset, W: io::Write> HashWriter<D, W> {
106 /// Retrieve result and reset hasher instance.
107 pub fn finalize_reset(&mut self) -> Output<D> {
108 Digest::finalize_reset(&mut self.hasher)
109 }
110
111 /// Write result into provided array and reset the hasher instance.
112 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