aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/crypto_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-06-01 16:14:11 +0800
committerGitHub <noreply@github.com>2017-06-01 16:14:11 +0800
commitf272879e5ac464b7260e898c0de0721c46d59195 (patch)
treea4c4f13cf54683b078d72d114d2a580812501655 /crypto/crypto_test.go
parent799a46900076e5315813ca7791f349b8e6eaed0c (diff)
parent72dd51e25a5c1553a5a7fc5f0fb84fbe3546682f (diff)
downloaddexon-f272879e5ac464b7260e898c0de0721c46d59195.tar
dexon-f272879e5ac464b7260e898c0de0721c46d59195.tar.gz
dexon-f272879e5ac464b7260e898c0de0721c46d59195.tar.bz2
dexon-f272879e5ac464b7260e898c0de0721c46d59195.tar.lz
dexon-f272879e5ac464b7260e898c0de0721c46d59195.tar.xz
dexon-f272879e5ac464b7260e898c0de0721c46d59195.tar.zst
dexon-f272879e5ac464b7260e898c0de0721c46d59195.zip
Merge pull request #14565 from karalabe/relax-privkey-checks
accounts/keystore, crypto: don't enforce key checks on existing keyfiles
Diffstat (limited to 'crypto/crypto_test.go')
-rw-r--r--crypto/crypto_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/crypto_test.go b/crypto/crypto_test.go
index e518ac22d..92302948e 100644
--- a/crypto/crypto_test.go
+++ b/crypto/crypto_test.go
@@ -36,7 +36,7 @@ var testPrivHex = "289c2857d4598e37fb9647507e47a309d6133539bf21a8b9cb6df88fd5232
// These tests are sanity checks.
// They should ensure that we don't e.g. use Sha3-224 instead of Sha3-256
// and that the sha3 library uses keccak-f permutation.
-func TestSha3Hash(t *testing.T) {
+func TestKeccak256Hash(t *testing.T) {
msg := []byte("abc")
exp, _ := hex.DecodeString("4e03657aea45a94fc7d47ba826c8d667c0d1e6e33a64a036ec44f58fa12d6c45")
checkhash(t, "Sha3-256-array", func(in []byte) []byte { h := Keccak256Hash(in); return h[:] }, msg, exp)