aboutsummaryrefslogtreecommitdiff
path: root/internal/contentenc/content_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-07-14 23:22:15 +0200
committerJakob Unterwurzacher2017-07-14 23:22:15 +0200
commitccf1a84e417e9f7d83f31c61c44cf3851703b1e4 (patch)
tree69163223fab7c2dd86076c20f83a2a04dd6b6643 /internal/contentenc/content_test.go
parent61e964457d27cbe7cbedaa7bf81d1e78f685960b (diff)
macos: make testing without openssl work properly
On MacOS, building and testing without openssl is much easier. The tests should skip tests that fail because of missing openssl instead of aborting. Fixes https://github.com/rfjakob/gocryptfs/issues/123
Diffstat (limited to 'internal/contentenc/content_test.go')
-rw-r--r--internal/contentenc/content_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/contentenc/content_test.go b/internal/contentenc/content_test.go
index e4d4a3e..998e9b8 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, cryptocore.BackendOpenSSL, DefaultIVBits, true, false)
+ cc := cryptocore.New(key, cryptocore.BackendGoGCM, DefaultIVBits, true, false)
f := New(cc, DefaultBS, false)
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, cryptocore.BackendOpenSSL, DefaultIVBits, true, false)
+ cc := cryptocore.New(key, cryptocore.BackendGoGCM, DefaultIVBits, true, false)
f := New(cc, DefaultBS, false)
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, cryptocore.BackendOpenSSL, DefaultIVBits, true, false)
+ cc := cryptocore.New(key, cryptocore.BackendGoGCM, DefaultIVBits, true, false)
f := New(cc, DefaultBS, false)
b := f.CipherOffToBlockNo(788)