package
2.2.26+incompatible
Repository: https://github.com/gochain-io/gochain.git
Documentation: pkg.go.dev
# Functions
Keccak256 is optimized for cases that call Sum() just once.
Keccack512 is an optimized alternative to NewKeccak512/Write/Sum, like Keccack256.
New224 creates a new SHA3-224 hash.
New256 creates a new SHA3-256 hash.
New384 creates a new SHA3-384 hash.
New512 creates a new SHA3-512 hash.
NewKeccak256 creates a new Keccak-256 hash.
NewKeccak256SingleSum is like NewKeccak256, but the returned hash must be Reset() after calling Sum().
NewKeccak512 creates a new Keccak-512 hash.
NewKeccak512SingleSum returns an optimized instance, like NewKeccak256SingleSum().
NewShake128 creates a new SHAKE128 variable-output-length ShakeHash.
NewShake256 creates a new SHAKE128 variable-output-length ShakeHash.
ShakeSum128 writes an arbitrary-length digest of data into hash.
ShakeSum256 writes an arbitrary-length digest of data into hash.
Sum224 returns the SHA3-224 digest of the data.
Sum256 returns the SHA3-256 digest of the data.
Sum384 returns the SHA3-384 digest of the data.
Sum512 returns the SHA3-512 digest of the data.
# Interfaces
ShakeHash defines the interface to hash functions that support arbitrary-length output.