

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Apply one round of the Feistel structure to the string P = 1111 1010 and the key K = 0110, where the function f is defined by f (R,K) = R + K (+ is bitwise XOR).
Let’s consider the stream cipher RC4, but instead of the full 256 bytes, we will use only 4 bytes. That is, the state vector S and the temporary vector T are 4 bytes each.
Assume we use the following 2 bytes key, K = [1 7]
Encrypt the plaintext character H using the stream cipher defined above. Note that the 8 bits ASCII representations for H is 01001000. Show your work.
NB: the RC4 algorithm is presented in the appendix, the calculation should be done using (mod4) instead of (mod256).