Question: LetG:{0,1} n {0,1} l (n) be an algorithm which takes s=s1s2sn{0,1} n as input and outputs G(s) =s1sns2sn1s3sn2sns1. For example,G(10) = 1001,G(110) =101101. (a) Find

LetG:{0,1}n{0,1}l(n) be an algorithm which takes s=s1s2sn{0,1}nas input and outputs G(s) =s1sns2sn1s3sn2sns1.

For example,G(10) = 1001,G(110) =101101.

(a) Find the expansion factor l(n).

(b) One efficient distinguisher D that claims G is not a pseudorandom generator is the following: For w l(n),D(w) = 1if the first and last bits are equal, and D(w) = 0 otherwise.Find another efficient distinguisher D that claims G is not a pseudorandom generator.

(c) Using the distinguisher you obtained in part (b), find the value of

| Prs{0,1}n D(G(s))Prr{0,1}l(n) D(r) |

and conclude that G is not pseudorandom.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!