summaryrefslogtreecommitdiff
path: root/src/crypto/rc4/rc4_ref.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/rc4/rc4_ref.go')
-rw-r--r--src/crypto/rc4/rc4_ref.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/crypto/rc4/rc4_ref.go b/src/crypto/rc4/rc4_ref.go
new file mode 100644
index 000000000..e34bd34cf
--- /dev/null
+++ b/src/crypto/rc4/rc4_ref.go
@@ -0,0 +1,13 @@
+// Copyright 2013 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build !amd64,!amd64p32,!arm,!386 arm,nacl
+
+package rc4
+
+// XORKeyStream sets dst to the result of XORing src with the key stream.
+// Dst and src may be the same slice but otherwise should not overlap.
+func (c *Cipher) XORKeyStream(dst, src []byte) {
+ c.xorKeyStreamGeneric(dst, src)
+}