Docsity

Feitsel RC4 exercice, Exercises of Cybercrime, Cybersecurity and Data Privacy

Toggle sidebar
bg1
Question I
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).
1. Consider a 4-bit block cipher with a fixed key K. The problems refer to CBC mode.
Show all your calculations carefully. A 2-block plaintext is encrypted using CBC mode
with the accompanying table. The three blocks 0101 1110 0010 are received. The first
block is the initialization vector. Find the second plaintext block.
Question IV
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).
Appendix
The RC4 Algorithm
pf2

Partial preview of the text

Download Feitsel RC4 exercice and more Exercises Cybercrime, Cybersecurity and Data Privacy in PDF only on Docsity!

Question I

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).

1. Consider a 4-bit block cipher with a fixed key K. The problems refer to CBC mode.

Show all your calculations carefully. A 2-block plaintext is encrypted using CBC mode

with the accompanying table. The three blocks 0101 1110 0010 are received. The first

block is the initialization vector. Find the second plaintext block.

Question IV

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).

Appendix

The RC4 Algorithm

  • Page 1/