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/stupidgcm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/stupidgcm/stupidgcm.go') 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 -- cgit v1.2.3