# Functions
NewDigest returns a Digest from alg and a hash.Hash object.
NewDigestFromBytes returns a new digest from the byte contents of p.
ParseDigest parses s and returns the validated digest object.
# Variables
DigestRegexp matches valid digest types.
DigestRegexpAnchored matches valid digest types, anchored to the start and end of the match.
ErrDigestInvalidFormat returned when digest format invalid.
ErrDigestInvalidLength returned when digest has invalid length.
ErrDigestUnsupported returned when the digest algorithm is unsupported.
# Interfaces
Digester calculates the digest of written data.