summaryrefslogtreecommitdiff
path: root/internal/contentenc/content_api.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2016-02-06 20:23:36 +0100
committerJakob Unterwurzacher2016-02-06 20:23:36 +0100
commitc74772bc8d7348ced429e5ca6ef47a53a8f215ff (patch)
tree5ac2097e050a09c02b4ed30b85f3f7774d03c9ad /internal/contentenc/content_api.go
parentb0ee5258b1ac60b9a672d9db0816b17ae12d0e55 (diff)
Run go fmt
Diffstat (limited to 'internal/contentenc/content_api.go')
-rw-r--r--internal/contentenc/content_api.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/internal/contentenc/content_api.go b/internal/contentenc/content_api.go
index 4c6aa00..cf482b6 100644
--- a/internal/contentenc/content_api.go
+++ b/internal/contentenc/content_api.go
@@ -11,9 +11,9 @@ type ContentEnc struct {
// Cryptographic primitives
cryptoCore *cryptocore.CryptoCore
// Plaintext block size
- plainBS uint64
+ plainBS uint64
// Ciphertext block size
- cipherBS uint64
+ cipherBS uint64
// All-zero block of size cipherBS, for fast compares
allZeroBlock []byte
}
@@ -23,14 +23,13 @@ func New(cc *cryptocore.CryptoCore, plainBS uint64) *ContentEnc {
cipherBS := plainBS + uint64(cc.IVLen) + cryptocore.AuthTagLen
return &ContentEnc{
- cryptoCore: cc,
- plainBS: plainBS,
- cipherBS: cipherBS,
+ cryptoCore: cc,
+ plainBS: plainBS,
+ cipherBS: cipherBS,
allZeroBlock: make([]byte, cipherBS),
}
}
-
func (be *ContentEnc) PlainBS() uint64 {
return be.plainBS
}