Documentation
¶
Overview ¶
Package ajhash provides helpers for working with the stdlib hashing algorithms.
Index ¶
Constants ¶
View Source
const (
DefaultAlgo = AlgoSHA256 // The default hash algorithm is SHA-256
)
Variables ¶
This section is empty.
Functions ¶
func AllZeroBytes ¶
Return true if all the bytes in the slice are zero.
Types ¶
type Algo ¶
type Algo uint8
Algo specifies the type of hashing algorithm being used and provides helper functions.
func (Algo) Buffer ¶
Return a slice of bytes that is of the correct digest size that can be used for reading or writing.
func (Algo) HashedStringForZeroBytes ¶
Return the hash (as a string) for when zero bytes are hashed.
Click to show internal directories.
Click to hide internal directories.