Documentation ¶
Overview ¶
Package ahash provides support for hashing data with a selectable
hash function.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashList ¶
func HashList() []string
HashList returns a sorted list of all the hash algorithms supported by the package.
func InsecureHashList ¶
func InsecureHashList() []string
InsecureHashList returns a sorted list of all the insecure hash algorithms supported by the package.
func SecureHashList ¶
func SecureHashList() []string
SecureHashList returns a sorted list of all the secure (cryptographic) hash algorithms supported by the package.
func SumLimitedReader ¶ added in v1.6.0
SumLimitedReader reads n bytes of data from the io.reader and returns the digest (not the hex digest) from the specified algorithm.
Types ¶
type Hash ¶
Hash represents a generic hash function that may or may not be secure. It satisfies the hash.Hash interface.
Click to show internal directories.
Click to hide internal directories.