The key-scheduling algorithm (KSA)


The key-scheduling algorithm is used to initialize the permutation in the array "S". "keylength" is defined as the number of bytes in the key and can be in the range 1 ≤ keylength ≤ 256, typically between 5 and 16, corresponding to a key length of 40 – 128 bits. First, the array "S" is initialized to the identity permutation. S is then processed for 256 iterations in a similar way to the main PRGA, but also mixes in bytes of the key at the same time.


SOURCE: http://en.wikipedia.org/wiki/RC4

文章標籤
全站熱搜
創作者介紹
創作者 Autumn Cher 的頭像
Autumn Cher

。°*Autumn's House*°。

Autumn Cher 發表在 痞客邦 留言(0) 人氣(17)