From 37a9b4c3ee9d5dd332ae2f4b25942c6fef254d72 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 3 Mar 2016 00:58:12 +0100 Subject: Enable openssl in tests to support old Go versions Go 1.4 and older do not support 128-bit IVs which caused the tests to panic. --- internal/contentenc/content_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/contentenc') diff --git a/internal/contentenc/content_test.go b/internal/contentenc/content_test.go index 2272aa3..299c8c8 100644 --- a/internal/contentenc/content_test.go +++ b/internal/contentenc/content_test.go @@ -23,7 +23,7 @@ func TestSplitRange(t *testing.T) { testRange{6654, 8945}) key := make([]byte, cryptocore.KeyLen) - cc := cryptocore.New(key, false, true) + cc := cryptocore.New(key, true, true) f := New(cc, DefaultBS) for _, r := range ranges { @@ -51,7 +51,7 @@ func TestCiphertextRange(t *testing.T) { testRange{6654, 8945}) key := make([]byte, cryptocore.KeyLen) - cc := cryptocore.New(key, false, true) + cc := cryptocore.New(key, true, true) f := New(cc, DefaultBS) for _, r := range ranges { @@ -74,7 +74,7 @@ func TestCiphertextRange(t *testing.T) { func TestBlockNo(t *testing.T) { key := make([]byte, cryptocore.KeyLen) - cc := cryptocore.New(key, false, true) + cc := cryptocore.New(key, true, true) f := New(cc, DefaultBS) b := f.CipherOffToBlockNo(788) -- cgit v1.2.3