aboutsummaryrefslogtreecommitdiff
path: root/internal/stupidgcm/gcm.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-09-07 17:48:55 +0200
committerJakob Unterwurzacher2021-09-07 18:15:04 +0200
commitd598536709db355366e90870c6df3508c71c5884 (patch)
tree98fc50ea508d5e45f3b6480e58b8d8f506d15b4b /internal/stupidgcm/gcm.go
parent3a80db953da93c741ad391ae124121459c1046b0 (diff)
stupidgcm: unexport stupidGCM struct
No need to have it exported.
Diffstat (limited to 'internal/stupidgcm/gcm.go')
-rw-r--r--internal/stupidgcm/gcm.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/internal/stupidgcm/gcm.go b/internal/stupidgcm/gcm.go
index 439e7a7..0cadd3c 100644
--- a/internal/stupidgcm/gcm.go
+++ b/internal/stupidgcm/gcm.go
@@ -21,20 +21,19 @@ const (
tagLen = 16
)
-// StupidGCM implements the cipher.AEAD interface
-type StupidGCM struct {
+type stupidGCM struct {
stupidAEADCommon
}
// Verify that we satisfy the interface
-var _ cipher.AEAD = &StupidGCM{}
+var _ cipher.AEAD = &stupidGCM{}
// New returns a new cipher.AEAD implementation..
func New(keyIn []byte, forceDecode bool) cipher.AEAD {
if len(keyIn) != keyLen {
log.Panicf("Only %d-byte keys are supported", keyLen)
}
- return &StupidGCM{
+ return &stupidGCM{
stupidAEADCommon{
// Create a private copy of the key
key: append([]byte{}, keyIn...),