aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/sha3/hashes.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-03-05 23:38:34 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-03-09 22:50:14 +0800
commit3b00a77de57ab2737a7887521c192ce004c721e3 (patch)
tree74f9abad1af8fec472c2d5cb5f4ab424e44f9b1f /crypto/sha3/hashes.go
parent288700c4d884321b7de7119b596c6e052fa33b27 (diff)
downloadgo-tangerine-3b00a77de57ab2737a7887521c192ce004c721e3.tar.gz
go-tangerine-3b00a77de57ab2737a7887521c192ce004c721e3.tar.zst
go-tangerine-3b00a77de57ab2737a7887521c192ce004c721e3.zip
crypto, pow: add pure Go implementation of ethash
Diffstat (limited to 'crypto/sha3/hashes.go')
-rw-r--r--crypto/sha3/hashes.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/sha3/hashes.go b/crypto/sha3/hashes.go
index 669cd5543..fa0d7b436 100644
--- a/crypto/sha3/hashes.go
+++ b/crypto/sha3/hashes.go
@@ -15,6 +15,9 @@ import (
// NewKeccak256 creates a new Keccak-256 hash.
func NewKeccak256() hash.Hash { return &state{rate: 136, outputLen: 32, dsbyte: 0x01} }
+// NewKeccak512 creates a new Keccak-512 hash.
+func NewKeccak512() hash.Hash { return &state{rate: 72, outputLen: 64, 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.