Skip to content
BY-NC-ND 3.0 license Open Access Published by De Gruyter October 8, 2008

A complete characterization of the evolution of RC4 pseudo random generation algorithm

Riddhipratim Basu , Shirshendu Ganguly , Subhamoy Maitra and Goutam Paul

Abstract

In this paper, we provide a complete characterization of the RC4 Pseudo Random Generation Algorithm (PRGA) for one step: i = i + 1; j = j + S[i]; swap(S[i], S[j]); z = S[S[i] + S[j]]. This is the first time such an involved description is presented to get a concise view of how RC4 PRGA evolves. Considering all the permutations (we also keep in mind the Finney states), we find that the distribution of z is not uniform given i, j. A corollary of this result shows that information about j is always leaked from z. Next, studying two consecutive steps of RC4 PRGA, we prove that the index j is not produced uniformly at random given the value of j two steps ago. We also provide additional evidence of z leaking information on j. Further, we present a novel distinguisher for RC4 which shows that under certain conditions the equality of two consecutive bytes is more probable than by random association. Our analysis holds regardless of the amount of initial keystream bytes thrown away during the RC4 PRGA.

Received: 2008-02-04
Revised: 2008-06-10
Published Online: 2008-10-08
Published in Print: 2008-October

© de Gruyter 2008

This article is distributed under the terms of the Creative Commons Attribution Non-Commercial License, which permits unrestricted non-commercial use, distribution, and reproduction in any medium, provided the original work is properly cited.

Downloaded on 29.1.2023 from https://www.degruyter.com/document/doi/10.1515/JMC.2008.012/html
Scroll Up Arrow