# Functions
FromBytes digests the input and returns a Digest.
FromReader returns the most valid digest for the underlying content using the canonical digest algorithm.
NewDigest returns a Digest from alg and a hash.Hash object.
NewDigestFromBytes returns a new digest from the byte contents of p.
NewDigestFromHex returns a Digest from alg and a the hex encoded digest.
NewDigestVerifier returns a verifier that compares the written bytes against a passed in digest.
NewSet creates an empty set of digests which may have digests added.
ParseDigest parses s and returns the validated digest object.
ShortCodeTable returns a map of Digest to unique short codes.
# Constants
Canonical is the primary digest algorithm used with the distribution project.
DigestSha256EmptyTar is the canonical sha256 digest of empty data.
sha256 with hex encoding.
sha384 with hex encoding.
sha512 with hex encoding.
# Variables
DigestRegexp matches valid digest types.
DigestRegexpAnchored matches valid digest types, anchored to the start and end of the match.
ErrDigestAmbiguous is used when multiple digests are found in a set.
ErrDigestInvalidFormat returned when digest format invalid.
ErrDigestInvalidLength returned when digest has invalid length.
ErrDigestNotFound is used when a matching digest could not be found in a set.
ErrDigestUnsupported returned when the digest algorithm is unsupported.
# Structs
Set is used to hold a unique set of digests which may be easily referenced by easily referenced by a string representation of the digest as well as short representation.