Documentation
¶
Overview ¶
Package hash implments the Noise Protocol Framework hash function abstract interface and standard hash functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hash ¶
type Hash interface {
fmt.Stringer
// New constructs a new `hash.Hash` instance.
New() hash.Hash
// Size returns the hash function's digest size in bytes (`HASHLEN`).
Size() int
}
Hash is a collision-resistant cryptographic hash function factory.
func FromString ¶
FromString returns a Hash by algorithm name, or nil.
Click to show internal directories.
Click to hide internal directories.