## Cryptology ePrint Archive: Report 2007/261

New Form of Permutation Bias and Secret Key Leakage in Keystream Bytes of RC4

Subhamoy Maitra and Goutam Paul

Abstract: Consider the permutation $S$ in RC4. Roos pointed out in 1995 that after the Key Scheduling Algorithm (KSA) of RC4, each of the initial bytes of the permutation, i.e., $S[y]$ for small values of $y$, is biased towards some linear combination of the secret key bytes. In this paper, for the first time we show that the bias can be observed in $S[S[y]]$ too. Based on this new form of permutation bias after the KSA and other related results, a complete framework is presented to show that many keystream output bytes of RC4 are significantly biased towards several linear combinations of the secret key bytes. The results do not assume any condition on the secret key. We find new biases in the initial as well as in the 256-th and 257-th keystream output bytes. For the first time biases at such later stages are discovered without any knowledge of the secret key bytes. We also identify that these biases propagate further, once the information for the index $j$ is revealed.

Category / Keywords: secret-key cryptography / Bias, Cryptanalysis, Keystream, RC4, Stream Cipher.

Publication Info: FSE 2008

Date: received 3 Jul 2007, last revised 9 Jan 2009

Contact author: subho at isical ac in

Available format(s): PDF | BibTeX Citation

Note: Theorem 6 is included as a new result and minor revisions have been made in the formula of Theorem 7.

Short URL: ia.cr/2007/261

[ Cryptology ePrint archive ]