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
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started