Documentation ¶
Overview ¶
Package hashing encapsulates all keyed hashing algorithms.
Index ¶
Constants ¶
View Source
const DefaultAlgorithm = "BLAKE2B-256-128"
DefaultAlgorithm is the name of the default hash algorithm.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(name string, newHashFunc HashFuncFactory)
Register registers a hash function with a given name.
func SupportedAlgorithms ¶
func SupportedAlgorithms() []string
SupportedAlgorithms returns the names of the supported hashing schemes.
Types ¶
type HashFunc ¶
HashFunc computes hash of content of data using a cryptographic hash function, possibly with HMAC and/or truncation.
func CreateHashFunc ¶
func CreateHashFunc(p Parameters) (HashFunc, error)
CreateHashFunc creates hash function from a given parameters.
type HashFuncFactory ¶
type HashFuncFactory func(p Parameters) (HashFunc, error)
HashFuncFactory returns a hash function for given formatting options.
type Parameters ¶
Parameters encapsulates all hashing-relevant parameters.
Click to show internal directories.
Click to hide internal directories.