Returns the digest to sign with certificate: exactly DigestLength bytes for the hash. May run more than once if the person switches certificate; only the last digest is signed. Throwing aborts the request.
certificate
const prepare: Prepare<"SHA-256"> = async (certificate, { hash }) => crypto.subtle.digest(hash, signedAttributesFor(certificate)); Copy
const prepare: Prepare<"SHA-256"> = async (certificate, { hash }) => crypto.subtle.digest(hash, signedAttributesFor(certificate));
Returns the digest to sign with
certificate: exactly DigestLength bytes for the hash. May run more than once if the person switches certificate; only the last digest is signed. Throwing aborts the request.