Question: Implement the stream cipher RC4 but use 16x4 bits instead of the full 256 bytes. That is, the state vector S is 16x4 bits. Assume
Implement the stream cipher RC4 but use 16x4 bits instead of the full 256 bytes. That is, the state vector S is 16x4 bits. Assume that a plaintext of P = [3 5 4 6 9 11 13 12], and an 8x4-bit key of K = [1 3 5 7 9 11 13 15] are given.
Answer the following by demonstrating your work step by step:
- Initialize the state vector S and temporary vector T.
- Perform the initial permutation on S.
- Generate the key stream.
- Produce the ciphertext for the given plaintext P.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
