Commit a028a023 authored by Andrew Gerrand's avatar Andrew Gerrand

crypto/twofish: fix Reset index overflow bug.

Fixes #1919.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4530110
parent d01b260e
......@@ -116,7 +116,7 @@ func (c *Cipher) Reset() {
c.k[i] = 0
}
for i := range c.s {
for j := 0; j < 265; j++ {
for j := 0; j < 256; j++ {
c.s[i][j] = 0
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment