From db5782028aaff99dbf15c62d851a4f6ec8227748 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 4 Oct 2016 22:29:14 +0200 Subject: tests: skip tests with -openssl=false on Go 1.4 and lower Go versions 1.4 and lower lack NewGCMWithNonceSize(), which causes a panic in the test. --- internal/cryptocore/gcm_go1.5.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/cryptocore/gcm_go1.5.go') diff --git a/internal/cryptocore/gcm_go1.5.go b/internal/cryptocore/gcm_go1.5.go index 0c9b1a5..6e67d21 100644 --- a/internal/cryptocore/gcm_go1.5.go +++ b/internal/cryptocore/gcm_go1.5.go @@ -7,6 +7,10 @@ import ( "crypto/cipher" ) +const ( + HaveModernGoGCM = true +) + // goGCMWrapper - This wrapper makes sure gocryptfs can be compiled on Go // versions 1.4 and lower that lack NewGCMWithNonceSize(). // 128 bit GCM IVs will not work when using built-in Go crypto, obviously, when -- cgit v1.2.3