go.crypto: remove cipher.Reset()

The go.crypto repo was missed when this function was removed from the
ciphers in the standard library.

R=agl
CC=golang-dev
https://golang.org/cl/6904062
This commit is contained in:
Damian Gryski
2012-12-10 11:00:48 -05:00
committed by Adam Langley
parent 4c5258d8b6
commit 62944567d8
5 changed files with 0 additions and 55 deletions
-8
View File
@@ -30,14 +30,6 @@ func (c *Cipher) BlockSize() int {
return BlockSize
}
// Reset zeros the key material in memory.
func (c *Cipher) Reset() {
for i := 0; i < 16; i++ {
c.masking[i] = 0
c.rotate[i] = 0
}
}
func (c *Cipher) Encrypt(dst, src []byte) {
l := uint32(src[0])<<24 | uint32(src[1])<<16 | uint32(src[2])<<8 | uint32(src[3])
r := uint32(src[4])<<24 | uint32(src[5])<<16 | uint32(src[6])<<8 | uint32(src[7])