From 3ba74ac4fcb8ad5c7bfa73d63059805318b8682e Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 2 Sep 2021 10:17:01 +0200 Subject: stupidgcm: add testWipe test After looking at the cover profile, this was the only untested code except panic cases. --- internal/stupidgcm/stupidchacha.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/stupidgcm/stupidchacha.go') 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 -- cgit v1.2.3