diff options
Diffstat (limited to 'libgo/go/crypto/rc4/rc4_ref.go')
-rw-r--r-- | libgo/go/crypto/rc4/rc4_ref.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/crypto/rc4/rc4_ref.go b/libgo/go/crypto/rc4/rc4_ref.go index 13d52b95dd3..bca4d28e1d1 100644 --- a/libgo/go/crypto/rc4/rc4_ref.go +++ b/libgo/go/crypto/rc4/rc4_ref.go @@ -14,7 +14,7 @@ func (c *Cipher) XORKeyStream(dst, src []byte) { i += 1 j += uint8(c.s[i]) c.s[i], c.s[j] = c.s[j], c.s[i] - dst[k] = v ^ byte(c.s[byte(c.s[i]+c.s[j])]) + dst[k] = v ^ uint8(c.s[uint8(c.s[i]+c.s[j])]) } c.i, c.j = i, j } |