Docsity

4 Problems on Applied Cryptography - Homework 5 | CS 6260, Assignments of Cryptography and System Security

Toggle sidebar
bg1
CS 6260: Applied Cryptography October 30, 2006
Homework 5
Lecturer: Sasha Boldyreva Due: November 6, 2006
Problem 5.1, 15 points.
Let H be a hash function constructed via the Merkle-Damgard transform. We define
a MAC MACK(M) = H(KkM), where Kis a random 160-bit string and M is a
string of arbitrary length. Show that this MAC is not secure.
Problem 5.2, 20 points.
Prove Theorem 2 from the slides on Authenticated Encryption. It states that MtE is
not always IND-CCA.
Hint. Assume that there exist IND-CPA secure encryption scheme. Modify it s.t. it
is still IND-CPA secure but the MtE scheme is not IND-CCA secure for any MAC.
Problem 5.3, 20 points.
Consider the batch-exponentiation problem that on inputs a k-bit integer N, a1, a2, . . . , al∈
Z∗
Nand b1, b2, . . . , bl∈ZN−1returns ab1
1·ab2
2·. . . ·abl
lmod N.
The naive algorithm for this problem uses 2lk +l−1 multiplications modulo N.
Design a new algorithm that uses 2k+2l−l−1 multiplications modulo N. This would
often be more efficient, when l≥2 not too large, but kis large, that is typically the
case in cryptography.
Problem 5.4, 10 points.
Compute the last two decimal digits of 31000 (by hand). Show your work.

Partial preview of the text

Download 4 Problems on Applied Cryptography - Homework 5 | CS 6260 and more Assignments Cryptography and System Security in PDF only on Docsity!

CS 6260: Applied Cryptography October 30, 2006

Homework 5

Lecturer: Sasha Boldyreva Due: November 6, 2006

Problem 5.1, 15 points. Let H be a hash function constructed via the Merkle-Damgard transform. We define a MAC M ACK (M ) = H(K‖M ), where K is a random 160-bit string and M is a string of arbitrary length. Show that this MAC is not secure.

Problem 5.2, 20 points. Prove Theorem 2 from the slides on Authenticated Encryption. It states that MtE is not always IND-CCA. Hint. Assume that there exist IND-CPA secure encryption scheme. Modify it s.t. it is still IND-CPA secure but the MtE scheme is not IND-CCA secure for any MAC.

Problem 5.3, 20 points. Consider the batch-exponentiation problem that on inputs a k-bit integer N, a 1 , a 2 ,... , al ∈ Z N∗ and b 1 , b 2 ,... , bl ∈ ZN − 1 returns ab 11 · ab 22 ·... · ab l lmod N.

The naive algorithm for this problem uses 2lk + l − 1 multiplications modulo N. Design a new algorithm that uses 2k +2l^ −l−1 multiplications modulo N. This would often be more efficient, when l ≥ 2 not too large, but k is large, that is typically the case in cryptography.

Problem 5.4, 10 points. Compute the last two decimal digits of 3^1000 (by hand). Show your work.