summaryrefslogtreecommitdiff
path: root/cryptfs
diff options
context:
space:
mode:
authorJakob Unterwurzacher2015-11-03 00:06:04 +0100
committerJakob Unterwurzacher2015-11-03 00:06:04 +0100
commit1ec0fa388d3cf6376ed37d5917c5316292045e8d (patch)
tree6dd02816da824786a552bd45ccd20bde5983168a /cryptfs
parentde56fe9e3503d98e359551072633c804794b94e1 (diff)
Update USAGE.txt
Also run go fmt
Diffstat (limited to 'cryptfs')
-rw-r--r--cryptfs/cryptfs.go12
1 files changed, 6 insertions, 6 deletions
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,
}
}