# Functions
CheckCapabilities returns an error if the digest function is not supported by the server.
GetDigestFunction returns the digest function used by the client.
New creates a new digest from a string and size.
NewFromBlob takes a blob (in the form of a byte array) and returns the Digest for that blob.
NewFromFile computes a file digest from a path.
NewFromMessage calculates the digest of a protobuf in SHA-256 mode.
NewFromProto converts a proto digest to a Digest.
NewFromProtoUnvalidated converts a proto digest to a Digest, skipping validation.
NewFromReader computes a file digest from a reader.
NewFromString returns a digest from a canonical digest string.
TestNew is like New but also pads your hash with zeros if it is shorter than the required length, and panics on error rather than returning the error.
TestNewFromMessage is only suitable for testing and panics on error.