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

Method finalize_reset

digest-io-async/src/writer.rs:124–126  ·  view source on GitHub ↗

Retrieve result and reset hasher instance.

(&mut self)

Source from the content-addressed store, hash-verified

122impl<D: Digest + FixedOutputReset, W> HashWriter<D, W> {
123 /// Retrieve result and reset hasher instance.
124 pub fn finalize_reset(&mut self) -> Output<D> {
125 Digest::finalize_reset(&mut self.hasher)
126 }
127
128 /// Write result into provided array and reset the hasher instance.
129 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