diff options
Diffstat (limited to 'src/pkg/crypto/blowfish/cipher.go')
-rw-r--r-- | src/pkg/crypto/blowfish/cipher.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pkg/crypto/blowfish/cipher.go b/src/pkg/crypto/blowfish/cipher.go index 6a8bdc0e0..ee0def85e 100644 --- a/src/pkg/crypto/blowfish/cipher.go +++ b/src/pkg/crypto/blowfish/cipher.go @@ -71,9 +71,9 @@ func (c *Cipher) Decrypt(src, dst []byte) { // Reset zeros the key data, so that it will no longer // appear in the process's memory. func (c *Cipher) Reset() { - zero(&c.p) - zero(&c.s0) - zero(&c.s1) - zero(&c.s2) - zero(&c.s3) + zero(c.p[0:]) + zero(c.s0[0:]) + zero(c.s1[0:]) + zero(c.s2[0:]) + zero(c.s3[0:]) } |