Answer:
Check the explanation
Step-by-step explanation:
After a particular step the registers X, Y and Z values are as it is in the first attached image below.
Now calculate the key stream bit, s using the following formula:
key stream bit , s= x0 XOR y0 XOR z0
s= 1 XOR 1 XOR 1
Hence, the 1st key bit stream ,s= 1
Now, for the next step we have to re calculate the contents of registers X, Y and Z as it is in the second attached image below.
For register X:
t= x5 XOR x2 XOR x1 XOR x0
= 0 XOR 1 XOR 0 XOR 1
t=0
For register Y:
t= y1 XOR y0
=1 XOR 1
t=0
For register Z:
t= z15 XOR z2 XOR z1 XOR z0
=1 XOR 1 XOR 1 XOR 1
t=0
Now, the contents of X, Y and X are as it is in the third attached image below.
Key stream bit, s= x0 XOR y0 XOR z0
S= 0 XOR 1 XOR 1
Hence the 2nd key stream bit, s= 0