diff options
author | Jakob Unterwurzacher | 2021-09-07 18:11:11 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2021-09-07 18:15:04 +0200 |
commit | 85c2beccaf674c69b3e30b0d646f5c11d91ecb9b (patch) | |
tree | 6e3efb67d7461b7df3e332c1ebe83691958a2dba /internal/cryptocore | |
parent | f47e287c202ba92e9b48e65bf95e0771c6c4997c (diff) |
stupidgcm: normalize constructor naming
New() -> NewAES256GCM()
Also add missing NewChacha20poly1305
constructor in without_openssl.go.
Diffstat (limited to 'internal/cryptocore')
-rw-r--r-- | internal/cryptocore/cryptocore.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/cryptocore/cryptocore.go b/internal/cryptocore/cryptocore.go index 1b692ff..d7b7527 100644 --- a/internal/cryptocore/cryptocore.go +++ b/internal/cryptocore/cryptocore.go @@ -120,7 +120,7 @@ func New(key []byte, aeadType AEADTypeEnum, IVBitLen int, useHKDF bool, forceDec if IVBitLen != 128 { log.Panicf("stupidgcm only supports 128-bit IVs, you wanted %d", IVBitLen) } - aeadCipher = stupidgcm.New(gcmKey, forceDecode) + aeadCipher = stupidgcm.NewAES256GCM(gcmKey, forceDecode) case BackendGoGCM: goGcmBlockCipher, err := aes.NewCipher(gcmKey) if err != nil { |