Skip to content

Commit

Permalink
amend panic error
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Sep 14, 2023
1 parent 5d10e6c commit db5291a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cng/rc4.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (c *RC4Cipher) XORKeyStream(dst, src []byte) {
panic("crypto/rc4: encryption failed: " + err.Error())
}
if int(outLen) != len(src) {
panic("crypto/rc4: plaintext not fully encrypted")
panic("crypto/rc4: src not fully XORed")
}
runtime.KeepAlive(c)
}

0 comments on commit db5291a

Please sign in to comment.