From 8c7e31329dc9eb058f23544fef418c1d4ba248f6 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 19 Dec 2015 15:19:31 +0100 Subject: [PATCH] Use NewGCMWithNonceSize only through goGCMWrapper to support Go 1.4 --- cryptfs/cryptfs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cryptfs/cryptfs.go b/cryptfs/cryptfs.go index ae62045..232129f 100644 --- a/cryptfs/cryptfs.go +++ b/cryptfs/cryptfs.go @@ -50,7 +50,7 @@ func NewCryptFS(key []byte, useOpenssl bool, plaintextNames bool, GCMIV128 bool) if useOpenssl { gcm = opensslGCM{key} } else { - gcm, err = cipher.NewGCMWithNonceSize(b, gcmIV) + gcm, err = goGCMWrapper(b, gcmIV) if err != nil { panic(err) }