diff --git a/crypto/sha3/hashes.go b/crypto/sha3/hashes.go index 2b51cf4e9b4047eb4d89cd96780b714bddd91677..669cd5543c62363c5316527ebf659fbaa5c58bdf 100644 --- a/crypto/sha3/hashes.go +++ b/crypto/sha3/hashes.go @@ -12,6 +12,9 @@ import ( "hash" ) +// NewKeccak256 creates a new Keccak-256 hash. +func NewKeccak256() hash.Hash { return &state{rate: 136, outputLen: 32, dsbyte: 0x01} } + // New224 creates a new SHA3-224 hash. // Its generic security strength is 224 bits against preimage attacks, // and 112 bits against collision attacks.