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

Method finalize_reset

digest-io-async/src/reader.rs:118–120  ·  view source on GitHub ↗

Retrieve result and reset hasher instance.

(&mut self)

Source from the content-addressed store, hash-verified

116impl<D: Digest + FixedOutputReset, R> HashReader<D, R> {
117 /// Retrieve result and reset hasher instance.
118 pub fn finalize_reset(&mut self) -> Output<D> {
119 Digest::finalize_reset(&mut self.hasher)
120 }
121
122 /// Write result into provided array and reset the hasher instance.
123 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