|
|
@@ -9,17 +9,9 @@ package sha3
|
|
|
// bytes.
|
|
|
|
|
|
import (
|
|
|
- "crypto"
|
|
|
"hash"
|
|
|
)
|
|
|
|
|
|
-func init() {
|
|
|
- crypto.RegisterHash(crypto.SHA3_224, New224)
|
|
|
- crypto.RegisterHash(crypto.SHA3_256, New256)
|
|
|
- crypto.RegisterHash(crypto.SHA3_384, New384)
|
|
|
- crypto.RegisterHash(crypto.SHA3_512, New512)
|
|
|
-}
|
|
|
-
|
|
|
// New224 creates a new SHA3-224 hash.
|
|
|
// Its generic security strength is 224 bits against preimage attacks,
|
|
|
// and 112 bits against collision attacks.
|