rc4_ref.go 449 B

1234567891011121314
  1. // Copyright 2013 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // +build !amd64,!amd64p32,!arm,!386 arm,nacl
  5. package rc4
  6. // XORKeyStream sets dst to the result of XORing src with the key stream.
  7. // Dst and src may be the same slice but otherwise should not overlap.
  8. func (c *Cipher) XORKeyStream(dst, src []byte) {
  9. c.xorKeyStreamGeneric(dst, src)
  10. }