Skip to content
Snippets Groups Projects
Commit 47309ea1 authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: arc4 - Add internal state


The arc4 algorithm has always had internal state.  It's been buggy
from day one in that the state has been stored in the shared tfm
object.  That means two users sharing the same tfm will end up
affecting each other's output, or worse, they may end up with the
same output.

Fix this by declaring an internal state and storing the state there
instead of within the tfm context.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 662ea18d
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment