aboutsummaryrefslogtreecommitdiff
path: root/internal/stupidgcm/stupidgcm.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-09-02 10:17:01 +0200
committerJakob Unterwurzacher2021-09-02 10:17:01 +0200
commit3ba74ac4fcb8ad5c7bfa73d63059805318b8682e (patch)
tree2698a2abf3ed109f4d899328c2fc41bf24c7e80c /internal/stupidgcm/stupidgcm.go
parent961b8ca438361b01f2f232d8735c236ef94b4d03 (diff)
stupidgcm: add testWipe test
After looking at the cover profile, this was the only untested code except panic cases.
Diffstat (limited to 'internal/stupidgcm/stupidgcm.go')
-rw-r--r--internal/stupidgcm/stupidgcm.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/stupidgcm/stupidgcm.go b/internal/stupidgcm/stupidgcm.go
index 01db41b..3499c85 100644
--- a/internal/stupidgcm/stupidgcm.go
+++ b/internal/stupidgcm/stupidgcm.go
@@ -240,7 +240,7 @@ func (g *StupidGCM) Open(dst, iv, in, authData []byte) ([]byte, error) {
// and setting the reference to nil.
//
// This is not bulletproof due to possible GC copies, but
-// still raises to bar for extracting the key.
+// still raises the bar for extracting the key.
func (g *StupidGCM) Wipe() {
for i := range g.key {
g.key[i] = 0