diff options
Diffstat (limited to 'internal/cryptocore')
-rw-r--r-- | internal/cryptocore/crypto_api.go | 16 |
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, } } |