Docsity

Block Ciphers - Introduction to Cryptography - Homework, Exercises of Cryptography and System Security

Toggle sidebar
bg1
COS 433/MAT 473 โ€” Cryptography โ€” Homework 6.
Due Nov 13 (Print, staple and hand in at the beginning of class).
Please type up your solutions using L
A
T
EX.
See course homepage for collaboration policy and late submissions.
Problem 1 (25 pts) Recall that block ciphers (like AES or DES) are used for encryption via var-
ious modes of operation. Certain modes of operation are insecure regardless of the properties of
the underlying block cipher. Consider a Cipher Block Chaining (CBC) variant in which a random
initial value c0=IV is chosen (and sent in the clear) but instead of computing each ciphertext block
as ci+1 =Fk(ciโŠ•mi+1), the encryption rule is ci+1 =ciโŠ•Fk(mi+1 ). Show that this variant does
not satisfy indistinguishability under chosen-plaintext attack.
Problem 2 (25 pts) 1. The General Number Field Sieve algorithm is (asymptotically) the fastest
algorithm known for integer factorization. Heuristically, factoring an integer Nwith it takes
time proportional to:
L(N) = exp ๎˜cยท(ln N)1
3ยท(ln ln N)2
3๎˜‘,
where cโˆผ1.526. In 1999, a 512-bit integer was factored using 292 PCs averaging 400 MHz,
each investing an average CPU time of 45 days. Using the same hardware, what is the time
for factoring a 1024-bit integer (as well as you can estimate given the information in this
problem)? And a 2048-bit integer?
2. The best known attack against some block ciphers is essentially a brute-force search of the key
space. In 1999, a specialized key-search machine costing $250,000 cracked a 56-bit DES key
in 56 hours. Using similar hardware, what is the time to break a 96-bit key? a 128-bit key?
3. What other criteria would you take into account when deciding how long to make your com-
posite numbers or block-cipher keys for cryptography?
Problem 3 (25 pts) In class we claimed that a 3 round Feistel network can be used to turn any
family of PRFs into a family of PRPs. Show that 2-round Feistel network does not suffice for this
purpose (show that a 2 round construction using any PRF does not result in a PRP).
Problem 4 (25 pts) Prove that there does not exist a perfectly secure public-key encryption scheme
even if the keys are allowed to be longer than the total length of all messages to be encrypted. (We
never defined perfect secrecy in the public-key setting, so part of this problem involves finding a
reasonable generalization of the definition.)
1

Partial preview of the text

Download Block Ciphers - Introduction to Cryptography - Homework and more Exercises Cryptography and System Security in PDF only on Docsity!

COS 433/MAT 473 โ€” Cryptography โ€” Homework 6.

Due Nov 13 (Print, staple and hand in at the beginning of class).

Please type up your solutions using LATEX.

See course homepage for collaboration policy and late submissions.

Problem 1 (25 pts) Recall that block ciphers (like AES or DES) are used for encryption via var- ious modes of operation. Certain modes of operation are insecure regardless of the properties of the underlying block cipher. Consider a Cipher Block Chaining (CBC) variant in which a random initial value c 0 = IV is chosen (and sent in the clear) but instead of computing each ciphertext block as ci+1 = Fk(ci โŠ• mi+1), the encryption rule is ci+1 = ci โŠ• Fk(mi+1). Show that this variant does not satisfy indistinguishability under chosen-plaintext attack.

Problem 2 (25 pts) 1. The General Number Field Sieve algorithm is (asymptotically) the fastest algorithm known for integer factorization. Heuristically, factoring an integer N with it takes time proportional to: L(N ) = exp

c ยท (ln N ) (^13) ยท (ln ln N )

where c โˆผ 1. 526. In 1999, a 512-bit integer was factored using 292 PCs averaging 400 MHz, each investing an average CPU time of 45 days. Using the same hardware, what is the time for factoring a 1024-bit integer (as well as you can estimate given the information in this problem)? And a 2048-bit integer?

  1. The best known attack against some block ciphers is essentially a brute-force search of the key space. In 1999, a specialized key-search machine costing $250,000 cracked a 56-bit DES key in 56 hours. Using similar hardware, what is the time to break a 96-bit key? a 128-bit key?
  2. What other criteria would you take into account when deciding how long to make your com- posite numbers or block-cipher keys for cryptography?

Problem 3 (25 pts) In class we claimed that a 3 round Feistel network can be used to turn any family of PRFs into a family of PRPs. Show that 2-round Feistel network does not suffice for this purpose (show that a 2 round construction using any PRF does not result in a PRP).

Problem 4 (25 pts) Prove that there does not exist a perfectly secure public-key encryption scheme even if the keys are allowed to be longer than the total length of all messages to be encrypted. (We never defined perfect secrecy in the public-key setting, so part of this problem involves finding a reasonable generalization of the definition.)