Open JackZielke opened 1 month ago
On page 5 of RC4OK. An improvement of the RC4 stream cipher it says: j0 ← (j0 + S[i]) mod 256
j0 ← (j0 + S[i]) mod 256
Line 49 of rc4ok.c j32 = ((j32 << 1) | (j32 >> 31)) + x;
j32 = ((j32 << 1) | (j32 >> 31)) + x;
I had to remove mod 256 from my code to get matching output from the reference code.
Thanks for referencing. Code is correct, need to apply minor change into pre-print, we will do.
Wonderful!
We updated paper, see new version: https://ia.cr/2023/1486
On page 5 of RC4OK. An improvement of the RC4 stream cipher it says:
j0 ← (j0 + S[i]) mod 256
Line 49 of rc4ok.c
j32 = ((j32 << 1) | (j32 >> 31)) + x;
I had to remove mod 256 from my code to get matching output from the reference code.