package
0.25.2
Repository: https://github.com/onflow/crypto.git
Documentation: pkg.go.dev

# Functions

ComputeSHA2_256 computes the SHA2-256 (commonly known as SHA256) digest of data and copies the result to the result buffer.
ComputeSHA3_256 computes the SHA3-256 digest of data and copies the result to the result buffer.
NewKeccak_256 returns a new instance of legacy Keccak-256 hasher.
NewKMAC_128 returns a new KMAC instance - key is the KMAC key (the key size is compared to the security level, although the parameter is used as a domain tag in Flow and not as a security key).
NewSHA2_256 returns a new instance of SHA2-256 hasher.
NewSHA2_384 returns a new instance of SHA2-384 hasher.
NewSHA3_256 returns a new instance of SHA3-256 hasher.
NewSHA3_384 returns a new instance of SHA3-384 hasher.

# Constants

No description provided by the author
Lengths of hash outputs in bytes.
No description provided by the author
No description provided by the author
No description provided by the author
legacy Keccak.
KMAC (Keccak based MAC algorithm).
KMAC the minimum key length in bytes.
SHA-2.
No description provided by the author
SHA-3.
No description provided by the author
Supported hashing algorithms.

# Interfaces

Hasher interface.

# Type aliases

Hash is the hash algorithms output types.
HashingAlgorithm is an identifier for a hashing algorithm.