package
0.0.11
Repository: https://github.com/grailbio/base.git
Documentation: pkg.go.dev

# Functions

New returns a new literal digest with the provided hash and value.
Parse parses a string representation of Digest, as defined by Digest.String().
ParseHash parses hex string hx produced by the the hash h into a Digest.
ReadDigest is a convenience function to read a (binary) Digest from an io.Reader, as written by WriteDigest.
WriteDigest is a convenience function to write a (binary) Digest to an io.Writer.

# Constants

crypto.BLAKE2b_256.
crypto.BLAKE2b_384.
crypto.BLAKE2b_512.
crypto.BLAKE2s_256.
crypto.MD4.
crypto.MD5.
crypto.MD5SHA1.
crypto.RIPEMD160.
crypto.SHA1.
crypto.SHA224.
crypto.SHA256.
crypto.SHA3_224.
crypto.SHA3_256.
crypto.SHA3_384.
crypto.SHA3_512.
crypto.SHA384.
crypto.SHA512.
crypto.SHA512_224.
crypto.SHA512_256.

# Variables

A Digest's hash function was not imported.
An attempt was made to parse an invalid digest.
An EOF was encountered while attempting to read a Digest.
The Digest's hash did not match the hash of the Digester.

# Structs

Digest represents a digest computed with a cryptographic hash function.
Writer provides an io.Writer to which digested bytes are written and from which a Digest is produced.
WriterAt can be used to calculate the digest of a file as it is being written.

# Interfaces

Reader can be used to calculate the digest of a file as it is being read.

# Type aliases

Digester computes digests based on a cryptographic hash function.