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:
committed by
Adam Langley
parent
4c5258d8b6
commit
62944567d8
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user