core::crypto::sha2
SHA-2 (FIPS 180-4): SHA-256, SHA-384 and SHA-512. Digest is a
running hash of any HashAlgorithm, SHA-2 or SHA-3 (sha3).
Structs
DigestSource
pub struct DigestA running hash of a HashAlgorithm. A value: copying it forks the
running hash (a transcript hash read mid-way).
Sourcepub const fn new(§alg: HashAlgorithm) -> Digest An empty running hash of
alg.
Sourcepub const fn algorithm(§self) -> HashAlgorithm The algorithm it runs.
Feed
datainto the hash; callfinishfor the digest.The digest of everything fed so far,
alg.output_len()bytes.
Trait implementations 1
impl Debug for Digest