From 440abcbac63a5994d4bac1b5dfcf838aaaefdbd7 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 7 Oct 2015 22:08:30 +0200 Subject: Add test.bash ...also adapt the cryptfs tests for 256 bit long keys --- cryptfs/content_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cryptfs/content_test.go') diff --git a/cryptfs/content_test.go b/cryptfs/content_test.go index ab48b21..aa6c9f3 100644 --- a/cryptfs/content_test.go +++ b/cryptfs/content_test.go @@ -19,7 +19,7 @@ func TestSplitRange(t *testing.T) { testRange{65444, 54}, testRange{6654, 8945}) - key := make([]byte, 16) + key := make([]byte, KEY_LEN) f := NewCryptFS(key, true) for _, r := range ranges { @@ -42,7 +42,7 @@ func TestCiphertextRange(t *testing.T) { testRange{65444, 54}, testRange{6654, 8945}) - key := make([]byte, 16) + key := make([]byte, KEY_LEN) f := NewCryptFS(key, true) for _, r := range ranges { @@ -60,7 +60,7 @@ func TestCiphertextRange(t *testing.T) { } func TestBlockNo(t *testing.T) { - key := make([]byte, 16) + key := make([]byte, KEY_LEN) f := NewCryptFS(key, true) b := f.BlockNoCipherOff(788) -- cgit v1.2.3