crypto/ecies: fix test

This commit is contained in:
Felix Lange 2020-04-01 10:43:33 +02:00
parent 9c5b79b7c1
commit b921ff6f07

View file

@ -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))
} }