summaryrefslogtreecommitdiff
path: root/cryptfs/openssl_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-12-10 20:52:59 +0100
committerJakob Unterwurzacher2015-12-10 20:55:09 +0100
commit78cd97c5e9de221a6cd2ddfcaaa2c1f1f430d264 (patch)
tree82668516f0e2b9156afc0dc6ec3f0b28a9e2de82 /cryptfs/openssl_test.go
parent61ee2271c454047781afad6ded2e17e6efe20113 (diff)
Wrap NewGCMWithNonceSize() to enable compilation on Go 1.4
Diffstat (limited to 'cryptfs/openssl_test.go')
-rw-r--r--cryptfs/openssl_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cryptfs/openssl_test.go b/cryptfs/openssl_test.go
index 85a97d9..aecee94 100644
--- a/cryptfs/openssl_test.go
+++ b/cryptfs/openssl_test.go
@@ -10,7 +10,6 @@ package cryptfs
import (
"crypto/aes"
- "crypto/cipher"
"testing"
)
@@ -20,7 +19,7 @@ func benchmarkGoEnc(b *testing.B, plaintext []byte, key []byte, nonce []byte) (c
if err != nil {
b.Fatal(err)
}
- aesgcm, err := cipher.NewGCMWithNonceSize(aes, len(nonce))
+ aesgcm, err := goGCMWrapper(aes, len(nonce))
if err != nil {
b.Fatal(err)
}