From 89fef80d32708874c95742db0a7b593bcfd3b31d Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 4 Oct 2015 14:36:20 +0200 Subject: Run go fmt --- cryptfs/openssl_aead.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cryptfs/openssl_aead.go') diff --git a/cryptfs/openssl_aead.go b/cryptfs/openssl_aead.go index 02f50d8..b743a3e 100644 --- a/cryptfs/openssl_aead.go +++ b/cryptfs/openssl_aead.go @@ -66,8 +66,8 @@ func (be opensslGCM) Open(dst, nonce, ciphertext, data []byte) ([]byte, error) { } l := len(ciphertext) - tag := ciphertext[l-AUTH_TAG_LEN:l] - ciphertext = ciphertext[0:l-AUTH_TAG_LEN] + tag := ciphertext[l-AUTH_TAG_LEN : l] + ciphertext = ciphertext[0 : l-AUTH_TAG_LEN] plainBuf := bytes.NewBuffer(dst) dctx, err := openssl.NewGCMDecryptionCipherCtx(128, nil, be.key[:], nonce[:]) -- cgit v1.2.3