mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
crypto/ecies: fix test
This commit is contained in:
parent
9c5b79b7c1
commit
b921ff6f07
1 changed files with 1 additions and 4 deletions
|
|
@ -47,10 +47,7 @@ func TestKDF(t *testing.T) {
|
||||||
msg := []byte("Hello, world")
|
msg := []byte("Hello, world")
|
||||||
h := sha256.New()
|
h := sha256.New()
|
||||||
|
|
||||||
k, err := concatKDF(h, msg, nil, 64)
|
k := concatKDF(h, msg, nil, 64)
|
||||||
if err != nil {
|
|
||||||
t.Fatal(err)
|
|
||||||
}
|
|
||||||
if len(k) != 64 {
|
if len(k) != 64 {
|
||||||
t.Fatalf("KDF: generated key is the wrong size (%d instead of 64\n", len(k))
|
t.Fatalf("KDF: generated key is the wrong size (%d instead of 64\n", len(k))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue