On biases of permutation and keystream bytes of RC4 towards the secret key

被引:5
|
作者
Paul, Goutam [1 ]
Maitra, Subhamoy [2 ]
机构
[1] Jadavpur Univ, Dept Comp Sci & Engn, Kolkata 700032, India
[2] Indian Stat Inst, Appl Stat Unit, Kolkata 700108, India
关键词
Bias; Cryptanalysis; Keystream; Key leakage; Permutation; RC4; Stream cipher; ATTACKS; STATE;
D O I
10.1007/s12095-008-0009-4
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
A theoretical analysis of the RC4 Key Scheduling Algorithm (KSA) is presented in this paper, where the nonlinear operation is swapping among the permutation bytes. Explicit formulae are provided for the probabilities with which the permutation bytes at any stage of the KSA are biased to the secret key. Theoretical proofs of these formulae have been left open since Roos' work (1995). Next, a generalization of the RC4 KSA is analyzed corresponding to a class of update functions of the indices involved in the swaps. This reveals an inherent weakness of shuffle-exchange kind of key scheduling. Moreover, we show that biases towards the secret key also exist in S[S[y]], S[S[S[y]]], and so on, for initial values of y. We additionally show that each byte of S-N actually reveals secret key information. Looking at all the elements of the final permutation S-N and its inverse S-N(-1), the value of the hidden index j in each round of the KSA can be estimated from a "pair of values" in 0, ... , N - 1 with a constant probability of success pi = N-2/N . (N-1/N)(N-1) + 2/N (we get pi approximate to 0.37, for N = 256), which is significantly higher than the random association. Using the values of two consecutive j's, we estimate the y-th key byte from at most a "quadruple of values" in 0, ... , N - 1 with a probability > 0.12. As a secret key of l bytes is repeated at least [N/l] times in RC4, these many quadruples can be accumulated to get each byte of the secret key with very high probability (e. g., 0.8 to close to 1) from a small set of values. Based on our analysis of the key scheduling, we show that the secret key of RC4 can be recovered from the state information in a time much less than the exhaustive search with good probability. Finally, based on the above biases of the permutation 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.
引用
收藏
页码:225 / 268
页数:44
相关论文
共 50 条
  • [41] The analysis of the number of fixed points in the key extending algorithm of RC4
    Xu Kejian
    He Liang
    Dai Zhaopeng
    Fan Xiubin
    SCIENCE IN CHINA SERIES A-MATHEMATICS, 2008, 51 (03): : 407 - 415
  • [42] Revisiting (nested) Roos bias in RC4 key scheduling algorithm
    Santanu Sarkar
    Ayineedi Venkateswarlu
    Designs, Codes and Cryptography, 2017, 82 : 131 - 148
  • [43] The analysis of the number of fixed points in the key extending algorithm of RC4
    XU KeJian~(1+) HE Liang~1 DAI ZhaoPeng~1 FAN XiuBin~2 1 College of Mathematics
    ScienceinChina(SeriesA:Mathematics), 2008, (03) : 407 - 415
  • [44] Revisiting (nested) Roos bias in RC4 key scheduling algorithm
    Sarkar, Santanu
    Venkateswarlu, Ayineedi
    DESIGNS CODES AND CRYPTOGRAPHY, 2017, 82 (1-2) : 131 - 148
  • [45] Some Combinatorial Results towards State Recovery Attack on RC4
    Das, Apurba
    Maitra, Subhamoy
    Paul, Goutam
    Sarkar, Santanu
    INFORMATION SYSTEMS SECURITY, 2011, 7093 : 204 - +
  • [46] All Your Biases Belong To Us: Breaking RC4 in WPA-TKIP and TLS
    Vanhoef, Mathy
    Piessens, Frank
    PROCEEDINGS OF THE 24TH USENIX SECURITY SYMPOSIUM, 2015, : 97 - 112
  • [47] Securing WEP Cryptosystems through A New RC4 Key Scheduling Algorithm
    Crainicu, Bogdan
    Iantovics, Barna Laszlo
    COMPLEXITY IN ARTIFICIAL AND NATURAL SYSTEMS, PROCEEDINGS, 2008, : 93 - 99
  • [48] A New Class of RC4 Colliding Key Pairs with Greater Hamming Distance
    Chen, Jiageng
    Miyaji, Atsuko
    INFORMATION SECURITY PRACTICE AND EXPERIENCE, PROCEEDINGS, 2010, 6047 : 30 - 44
  • [49] KSAm - An Improved RC4 Key-Scheduling Algorithm for Securing WEP
    Crainicu, Bogdan
    Boian, Florian Mircea
    NOVEL ALGORITHMS AND TECHNIQUES IN TELECOMMUNICATIONS AND NETWORKING, 2010, : 391 - 396
  • [50] Results on significant anomalies of state values after key scheduling algorithm in RC4
    Sarkar, Santanu
    IET INFORMATION SECURITY, 2017, 11 (05) : 267 - 272