package
1.2.1
Repository: https://github.com/threefoldtech/0-stor.git
Documentation: pkg.go.dev

# Functions

NewBlake2b256Hasher creates a new hasher, using the Blake2b (32 bytes output) algorithm.
NewBlake2b512Hasher creates a new hasher, using the Blake2b (64 bytes output) algorithm.
NewDefaultHasher256 returns a new instance of the default hasher type.
NewDefaultHasher512 returns a new instance of the default hasher type.
NewHasher returns a new instance for the given hasher type.
NewSHA256Hasher creates a new hasher, using the SHA256 (32 bytes output) algorithm.
NewSHA512Hasher creates a new hasher, using the SHA512 (64 bytes output) algorithm.
RegisterHasher registers a new or overwrite an existing hash algorithm.
Sum256 create and returns a hash, for and given some binary input data, using the default hashing algorithm, Blake2b_256.
Sum512 create and returns a hash, for and given some binary input data, using the default hashing algorithm, Blake2b_512.
SumBlake2b256 creates and returns a hash, for and given some binary input data, using the third-party blake2b-256 algorithm.
SumBlake2b512 creates and returns a hash, for and given some binary input data, using the third-party blake2b-512 algorithm.
SumSHA256 creates and returns a hash, for and given some binary input data, using the std sha256 algorithm.
SumSHA512 creates and returns a hash, for and given some binary input data, using the std sha512 algorithm.

# Constants

DefaultHash256Type represents the default 256 bit Hashing algorithm as promoted by this package.
DefaultHash512Type represents the default 512 bit hashing algorithm as promoted by this package.
DefaultHashType represents the default hashing algorithm as promoted by this package.
HashTypeBlake2b256 is the enum constant which identifies Blake2b-256, a cryptographic hashing algorithm which produces a secure hash of 32 bytes.
HashTypeBlake2b512 is the enum constant which identifies Blake2b-512, a cryptographic hashing algorithm which produces a secure hash of 64 bytes.
HashTypeSHA256 is the enum constant which identifies SHA256, a cryptographic hashing algorithm which produces a secure hash of 32 bytes.
HashTypeSHA512 is the enum constant which identifies SHA512, a cryptographic hashing algorithm which produces a secure hash of 64 bytes.
MaxStandardHashType defines the hasher type, which has the greatest defined/used enum value.

# Structs

Blake2b256Hasher defines a crypto-hasher, using the third-party blake2b-256 algorithm.
Blake2b512Hasher defines a crypto-hasher, using the third-party blake2b-512 algorithm.
SHA256Hasher defines a crypto-hasher, using the std SHA256 algorithm.
SHA512Hasher defines a crypto-hasher, using the std SHA512 algorithm.

# Interfaces

Hasher defines the interface of a crypto-hasher, which can be used to create a hash, given some binary input data.

# Type aliases

HasherConstructor defines a function which can be used to create a hasher.
HashFunc create and returns a hash, for and given some binary input data.
HashType represents a cryptographic hashing algorithm.