From 1caa9258685fa5fad8935d3bfcd0eac7d7f84f1e Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 19 Dec 2015 14:41:39 +0100 Subject: Increase GCM IV size from 96 to 128 bits This pushes back the birthday bound for collisions to make it virtually irrelevant. --- 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 1b269bd..3efa959 100644 --- a/cryptfs/content_test.go +++ b/cryptfs/content_test.go @@ -21,7 +21,7 @@ func TestSplitRange(t *testing.T) { testRange{6654, 8945}) key := make([]byte, KEY_LEN) - f := NewCryptFS(key, true, false) + f := NewCryptFS(key, true, false, true) for _, r := range ranges { parts := f.ExplodePlainRange(r.offset, r.length) @@ -48,7 +48,7 @@ func TestCiphertextRange(t *testing.T) { testRange{6654, 8945}) key := make([]byte, KEY_LEN) - f := NewCryptFS(key, true, false) + f := NewCryptFS(key, true, false, true) for _, r := range ranges { @@ -70,7 +70,7 @@ func TestCiphertextRange(t *testing.T) { func TestBlockNo(t *testing.T) { key := make([]byte, KEY_LEN) - f := NewCryptFS(key, true, false) + f := NewCryptFS(key, true, false, true) b := f.CipherOffToBlockNo(788) if b != 0 { -- cgit v1.2.3