aboutsummaryrefslogtreecommitdiff
path: root/bhash/bhash_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'bhash/bhash_test.go')
-rw-r--r--bhash/bhash_test.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/bhash/bhash_test.go b/bhash/bhash_test.go
index c49f687..e3da3ef 100644
--- a/bhash/bhash_test.go
+++ b/bhash/bhash_test.go
@@ -25,9 +25,14 @@ func TestHashZero(t *testing.T) {
0x29, 0xbd, 0xe2, 0x0e, 0x23, 0x32, 0x9e, 0x77,
0x4d, 0x84, 0x22, 0xba, 0xc0, 0xa7, 0x92, 0x6c,
}
- zero := [32]byte{}
- res := Hash(zero[:], zero[:])
+ zero := make([]byte, 32)
+ res := Hash(zero, zero)
if !bytes.Equal(res, golden) {
t.Errorf("got %x, want %x", res, golden)
}
}
+
+func TestPbkdf(t *testing.T) {
+ zero := make([]byte, 32)
+ Pbkdf(zero, zero, 2, 2)
+}