Skip to content

Commit

Permalink
Update cng/rc4.go
Browse files Browse the repository at this point in the history
Co-authored-by: Davis Goodin <dagood@users.noreply.github.com>
  • Loading branch information
qmuntal and dagood authored Sep 27, 2024
1 parent 6f04c56 commit a0554c1
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 @@ -47,7 +47,7 @@ func (c *RC4Cipher) XORKeyStream(dst, src []byte) {
if c.kh == 0 || len(src) == 0 {
return
}
// rc4.Cipher.XORKeyStream throws an out of bond panic if
// rc4.Cipher.XORKeyStream throws an out of bounds panic if
// dst is smaller than src. Replicate the same behavior here.
_ = dst[len(src)-1]

Expand Down

0 comments on commit a0554c1

Please sign in to comment.