crypto/sha3: Export Keccak-256 hash function

This hash function is slightly different from the standarized NIST SHA-3
as both of them use different domain separation bits.
parent 5387ad76
...@@ -12,6 +12,9 @@ import ( ...@@ -12,6 +12,9 @@ import (
"hash" "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. // New224 creates a new SHA3-224 hash.
// Its generic security strength is 224 bits against preimage attacks, // Its generic security strength is 224 bits against preimage attacks,
// and 112 bits against collision attacks. // and 112 bits against collision attacks.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment