summaryrefslogtreecommitdiff
path: root/internal/stupidgcm/stupidchacha.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/stupidchacha.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/stupidchacha.go')
-rw-r--r--internal/stupidgcm/stupidchacha.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/stupidgcm/stupidchacha.go b/internal/stupidgcm/stupidchacha.go
index e2f6407..2b31e0f 100644
--- a/internal/stupidgcm/stupidchacha.go
+++ b/internal/stupidgcm/stupidchacha.go
@@ -213,7 +213,7 @@ func (g *stupidChacha20poly1305) Open(dst, iv, in, authData []byte) ([]byte, err
// 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 *stupidChacha20poly1305) Wipe() {
for i := range g.key {
g.key[i] = 0