Docsity

Problem Set #4 - Cryptology | CMSC 456, Assignments of Cryptography and System Security

Toggle sidebar
bg1
University Problem Set #4 CMSC 456
of Maryland Due: 23 Oct 2003 Fall 2003
Homework is due at the start of class, on the date listed above. Problems numbered G# need only be
completed by graduate students.
0. This problem is a reading exercise, and will not be graded. Read the following from Jonathan Katz’s lecture
notes from his Fall 2002 course: (a) Section 3.1, Lecture 14, on Pseudorandom Permutations; and (b) CFB
mode and Counter mode, Lecture 17.
1. Suppose f:{0,1}n→ {0,1}nis an one-way permutation. Consider the function h:{0,1}n→ {0,1}, where
h(x) is the AND of all the nbits of x. Show that his not a hardcore bit for f; do this by showing that
given f(x), we can predict h(x) with probability 1 (i.e., with absolute certainty), in polynomial time.
2. Let G:{0,1}∗→ {0,1}∗be a PRG such that |G(x)|=|x|+ 1, for all strings x. Let p(k) be any particular
polynomial function of k, and define H:{0,1}k→ {0,1}k+p(k)by H(x) = G(G(G(· · · (x)))), where Gis
applied p(k) times. (Thus, we stretch the given k-bit string xto a new string of length k+p(k).) Prove that
His a PRG. (We had done this in class for the special case where p(k) = 2.)
3. Consider the following message authentication scheme. Suppose the messages are elements of the field Zpfor
some known prime p; the secret key (for authentication) is a pair of elements aand bof Zp. (Thus, a, b are
known to Alice and Bob, but not to the adversary.) To authenticate a message M∈Zp, the tag computed
is (aM +b) mod p. Show that this message authentication scheme is insecure.
G1. (For graduate students only.) Suppose G:{0,1}k→ {0,1}k+1 is a PRG. Let h1(x) be the k-bit string
denoting the first kbits of G(x), and let h2(x) be the bit denoting the last bit of G(x). Show that the
following function H:{0,1}k→ {0,1}k+2 is also a PRG:
H(x) = G(h1(x)) ◦h2(x),
where “◦” denotes concatenation. (Hint: Use an appropriate hybrid argument.)

Partial preview of the text

Download Problem Set #4 - Cryptology | CMSC 456 and more Assignments Cryptography and System Security in PDF only on Docsity!

University Problem Set #4 CMSC 456 of Maryland Due: 23 Oct 2003 Fall 2003

Homework is due at the start of class, on the date listed above. Problems numbered G# need only be completed by graduate students.

  1. This problem is a reading exercise, and will not be graded. Read the following from Jonathan Katz’s lecture notes from his Fall 2002 course: (a) Section 3.1, Lecture 14, on Pseudorandom Permutations; and (b) CFB mode and Counter mode, Lecture 17.
  2. Suppose f : { 0 , 1 }n^ → { 0 , 1 }n^ is an one-way permutation. Consider the function h : { 0 , 1 }n^ → { 0 , 1 }, where h(x) is the AND of all the n bits of x. Show that h is not a hardcore bit for f ; do this by showing that given f (x), we can predict h(x) with probability 1 (i.e., with absolute certainty), in polynomial time.
  3. Let G : { 0 , 1 }∗^ → { 0 , 1 }∗^ be a PRG such that |G(x)| = |x| + 1, for all strings x. Let p(k) be any particular polynomial function of k, and define H : { 0 , 1 }k^ → { 0 , 1 }k+p(k)^ by H(x) = G(G(G(· · · (x)))), where G is applied p(k) times. (Thus, we stretch the given k-bit string x to a new string of length k + p(k).) Prove that H is a PRG. (We had done this in class for the special case where p(k) = 2.)
  4. Consider the following message authentication scheme. Suppose the messages are elements of the field Zp for some known prime p; the secret key (for authentication) is a pair of elements a and b of Zp. (Thus, a, b are known to Alice and Bob, but not to the adversary.) To authenticate a message M ∈ Zp, the tag computed is (aM + b) mod p. Show that this message authentication scheme is insecure.

G1. (For graduate students only.) Suppose G : { 0 , 1 }k^ → { 0 , 1 }k+1^ is a PRG. Let h 1 (x) be the k-bit string denoting the first k bits of G(x), and let h 2 (x) be the bit denoting the last bit of G(x). Show that the following function H : { 0 , 1 }k^ → { 0 , 1 }k+2^ is also a PRG:

H(x) = G(h 1 (x)) ◦ h 2 (x),

where “◦” denotes concatenation. (Hint: Use an appropriate hybrid argument.)