Re: Securing ARC4
- From: daw@xxxxxxxxxxxxxxxxxxxxxxxx (David Wagner)
- Date: Thu, 2 Nov 2006 21:06:05 +0000 (UTC)
Bill Cox wrote:
Randomization is simple, given an array R of 256 truely random bytes:
for i = 0 to 255
swap(S[i], S[R[i]]
Where does the key come in? Is this applied before the normal RC4
key schedule? after? something else?
On second thought, never mind, don't bother answering those questions.
It doesn't matter: I won't have time to perform a careful analysis of
this RC4 variation in any event. At a high level, you are changing the
RC4 algorithm. Any such changes have to be evaluated very carefully,
because they can introduce insecurity. Your changes could easily
introduce security problems.
I know you said that you've completely randomized S, so you don't see
how a security problem could arise, but think about this. The array R
is public knowledge. Say you generate one S-table with key K and array
R and use that to encrypt the first message; then you generate another
S-table with key K and array R' and use that to encrypt the second
message. You've essentially got a related-key condition. This might
help an attacker to recover K. How do you know that cannot happen?
Even worse, depending upon the surrounding protocol, it may be possible
for the attacker to choose or control R in some way. If that is possible,
it may open up another avenue for attacks. That's why these changes to
the internal details of algorithms have to be carefully analyzed.
Crypto primitives are hard to evaluate. It takes a lot of work and
expertise to get a sense about whether the crypto primitive is likely to
be secure or not. Tweaking the innards of a primitive is not something
to be done lightly. I encourage you to resist the urge to tweak the
algorithms (no matter how fun it may be).
.
- Follow-Ups:
- Re: Securing ARC4
- From: Bill Cox
- Re: Securing ARC4
- References:
- Securing ARC4
- From: Bill Cox
- Re: Securing ARC4
- From: Bill Cox
- Re: Securing ARC4
- From: David Wagner
- Re: Securing ARC4
- From: Bill Cox
- Securing ARC4
- Prev by Date: Re: TomsFastMath v0.10 released
- Next by Date: Re: Notice: My 2nd crypto book finished :-)
- Previous by thread: Re: Securing ARC4
- Next by thread: Re: Securing ARC4
- Index(es):
Relevant Pages
|
Loading