summaryrefslogtreecommitdiff
path: root/internal/cryptocore/crypto_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/cryptocore/crypto_api.go
parentb0ee5258b1ac60b9a672d9db0816b17ae12d0e55 (diff)
Run go fmt
Diffstat (limited to 'internal/cryptocore/crypto_api.go')
-rw-r--r--internal/cryptocore/crypto_api.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/cryptocore/crypto_api.go b/internal/cryptocore/crypto_api.go
index c6b6869..0db9bbb 100644
--- a/internal/cryptocore/crypto_api.go
+++ b/internal/cryptocore/crypto_api.go
@@ -1,21 +1,21 @@
package cryptocore
import (
- "crypto/cipher"
"crypto/aes"
+ "crypto/cipher"
"fmt"
)
const (
- KeyLen = 32 // AES-256
- AuthTagLen = 16
+ KeyLen = 32 // AES-256
+ AuthTagLen = 16
)
type CryptoCore struct {
BlockCipher cipher.Block
Gcm cipher.AEAD
- GcmIVGen *nonceGenerator
- IVLen int
+ GcmIVGen *nonceGenerator
+ IVLen int
}
func New(key []byte, useOpenssl bool, GCMIV128 bool) *CryptoCore {
@@ -49,8 +49,8 @@ func New(key []byte, useOpenssl bool, GCMIV128 bool) *CryptoCore {
return &CryptoCore{
BlockCipher: blockCipher,
- Gcm: gcm,
- GcmIVGen: &nonceGenerator{nonceLen: IVLen},
- IVLen: IVLen,
+ Gcm: gcm,
+ GcmIVGen: &nonceGenerator{nonceLen: IVLen},
+ IVLen: IVLen,
}
}