Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
9394629b
Commit
9394629b
authored
Dec 12, 2013
by
Richard Musiol
Committed by
Adam Langley
Dec 12, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypto/rc4: fix type errors in pure Go implementation
R=golang-dev, agl CC=golang-dev
https://golang.org/cl/40540049
parent
107d1829
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
rc4_ref.go
src/pkg/crypto/rc4/rc4_ref.go
+2
-2
No files found.
src/pkg/crypto/rc4/rc4_ref.go
View file @
9394629b
...
...
@@ -12,9 +12,9 @@ func (c *Cipher) XORKeyStream(dst, src []byte) {
i
,
j
:=
c
.
i
,
c
.
j
for
k
,
v
:=
range
src
{
i
+=
1
j
+=
c
.
s
[
i
]
j
+=
uint8
(
c
.
s
[
i
])
c
.
s
[
i
],
c
.
s
[
j
]
=
c
.
s
[
j
],
c
.
s
[
i
]
dst
[
k
]
=
v
^
c
.
s
[
c
.
s
[
i
]
+
c
.
s
[
j
]]
dst
[
k
]
=
v
^
uint8
(
c
.
s
[
uint8
(
c
.
s
[
i
]
+
c
.
s
[
j
])])
}
c
.
i
,
c
.
j
=
i
,
j
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment