Skip to main content
Go to Latest
method DigestContext.prototype.clone
import { DigestContext } from "https://deno.land/std@0.145.0/_wasm_crypto/mod.ts";

Returns a new DigestContext that is a copy of this one, i.e., using the same algorithm and with a copy of the same internal state.

This may be a more efficient option for computing multiple digests that start with a common prefix.