Source File
rc4.go
Belonging Package
crypto/rc4
package rc4
import (
)
func ( *Cipher) (, []byte) {
if len() == 0 {
return
}
if subtle.InexactOverlap([:len()], ) {
panic("crypto/rc4: invalid buffer overlap")
}
, := .i, .j
_ = [len()-1]
= [:len()] // eliminate bounds check from loop
for , := range {
+= 1
:= .s[]
+= uint8()
:= .s[]
.s[], .s[] = ,
[] = ^ uint8(.s[uint8(+)])
}
.i, .j = ,
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |