

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!


DES has 56-bit keys, 64-bit plaintext blocks, and 64-bit ciphertext blocks. The number of ciphertext blocks equals the number of plaintext blocks. DES is a 1-1 mapping between ciphertext blocks and plaintext blocks. So 1 plaintext block is mapped to a given ciphertext block by any given key.
Each key maps 2^64 plaintext blocks to 2^64 ciphertext blocks. So it has a 1/2^64 chance of mapping a plaintext block b to a ciphertext block c. There are 2^56 keys, so the total probability of mapping p to c is (1/2^64 )⋅ 256 = 1/256.
DES does the following (see text figure 3-2):
With a mangler function that outputs 0 always, each DES round just swaps L and R. So after 16 (even number) DES rounds, the initial 64-bit word would be unchanged. So DES would do the following:
The OFB pad sequence is Ex(IV), Ex(Ex (IV)), Ex(Ex(Ex (IV))), ... A weak key is its own inverse, i.e., for any block b: Ex(b) = Dx(b). So Ex(Ex(b)) = b. So the resulting OFB pad sequence is Ex(IV), IV, Ex(IV), IV, ⋅⋅⋅⋅
K{IV} will be the first block to repeat. Proof: For brevity, let bi denote the i-fold encryption of IV. So the pad sequence is b 1 , b 2 , b 1 , ....., where bi+1 is the encryption of bi and bi is the decryption of bi+1 (because decryption is the inverse of encryption). Let bk be the first repeat element and let bk=bj where j < k.
Note that we only needed the fact that encryption is reversable.
Problems graded: Problems 3 and 5 were graded, each out of 5 points.
Grading key for problem 3: 1 point for just writing something. 2 points for saying that each DES round just exchanges L and R. 3 points for saying that each DES round just exchanges L and R, so after 16 (even) rounds, there is no change. 4 points: if you miss the final L-R swap and just say that DES has no effect. 5 points: if you get the answer.
Grading key for problem 5: 1 point for just writing something. 2 points for saying K{IV} is the first block to be repeated. 3-5 points for the proof: a) bk is decryption of bk+1, and bk+1 is encryption of bk b) if bk = bj, k > j, then bk− 1 = bj− 1 c) b 1 is the first one to be repeated in the sequence b 1 , b 2 , ⋅⋅⋅ Missing any of (a), (b) or (c) will lose one point. Correct proof but saying IV is first repeated block instead of K{IV} will lose one point.