aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/sha3/sha3_test.go
diff options
context:
space:
mode:
authorEgon Elbre <egonelbre@gmail.com>2017-08-08 18:58:22 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-08-08 18:58:22 +0800
commit10ce8b0e3c361f7fcbd9440fe78566f49cce9588 (patch)
tree5c06bbcc8fc0fe8637a86f3794d5577d379c8677 /crypto/sha3/sha3_test.go
parent9a7e99f75d09dc7835d3335d97a37f153d480cc6 (diff)
downloaddexon-10ce8b0e3c361f7fcbd9440fe78566f49cce9588.tar
dexon-10ce8b0e3c361f7fcbd9440fe78566f49cce9588.tar.gz
dexon-10ce8b0e3c361f7fcbd9440fe78566f49cce9588.tar.bz2
dexon-10ce8b0e3c361f7fcbd9440fe78566f49cce9588.tar.lz
dexon-10ce8b0e3c361f7fcbd9440fe78566f49cce9588.tar.xz
dexon-10ce8b0e3c361f7fcbd9440fe78566f49cce9588.tar.zst
dexon-10ce8b0e3c361f7fcbd9440fe78566f49cce9588.zip
crypto: fix megacheck warnings (#14917)
* crypto: fix megacheck warnings * crypto/ecies: remove ASN.1 support
Diffstat (limited to 'crypto/sha3/sha3_test.go')
-rw-r--r--crypto/sha3/sha3_test.go11
1 files changed, 1 insertions, 10 deletions
diff --git a/crypto/sha3/sha3_test.go b/crypto/sha3/sha3_test.go
index c433761a8..0e33676ce 100644
--- a/crypto/sha3/sha3_test.go
+++ b/crypto/sha3/sha3_test.go
@@ -53,15 +53,6 @@ var testShakes = map[string]func() ShakeHash{
"SHAKE256": NewShake256,
}
-// decodeHex converts a hex-encoded string into a raw byte string.
-func decodeHex(s string) []byte {
- b, err := hex.DecodeString(s)
- if err != nil {
- panic(err)
- }
- return b
-}
-
// structs used to marshal JSON test-cases.
type KeccakKats struct {
Kats map[string][]struct {
@@ -125,7 +116,7 @@ func TestKeccakKats(t *testing.T) {
// TestUnalignedWrite tests that writing data in an arbitrary pattern with
// small input buffers.
-func testUnalignedWrite(t *testing.T) {
+func TestUnalignedWrite(t *testing.T) {
testUnalignedAndGeneric(t, func(impl string) {
buf := sequentialBytes(0x10000)
for alg, df := range testDigests {