From 1ec0fa388d3cf6376ed37d5917c5316292045e8d Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Tue, 3 Nov 2015 00:06:04 +0100 Subject: Update USAGE.txt Also run go fmt --- cryptfs/cryptfs.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cryptfs') diff --git a/cryptfs/cryptfs.go b/cryptfs/cryptfs.go index ed19b26..783bfb8 100644 --- a/cryptfs/cryptfs.go +++ b/cryptfs/cryptfs.go @@ -22,7 +22,7 @@ type CryptFS struct { plainBS uint64 cipherBS uint64 // Stores an all-zero block of size cipherBS - allZeroBlock []byte + allZeroBlock []byte plaintextNames bool } @@ -50,11 +50,11 @@ func NewCryptFS(key []byte, useOpenssl bool, plaintextNames bool) *CryptFS { cipherBS := DEFAULT_PLAINBS + NONCE_LEN + AUTH_TAG_LEN return &CryptFS{ - blockCipher: b, - gcm: gcm, - plainBS: DEFAULT_PLAINBS, - cipherBS: uint64(cipherBS), - allZeroBlock: make([]byte, cipherBS), + blockCipher: b, + gcm: gcm, + plainBS: DEFAULT_PLAINBS, + cipherBS: uint64(cipherBS), + allZeroBlock: make([]byte, cipherBS), plaintextNames: plaintextNames, } } -- cgit v1.2.3