
358 Cryptography with Open-Source Software
sage: rf = [float(i/(2^31)) for i in rnd]
sage: list_plot([(rf[i],rf[i+1],rf[i+2])\
....: for i in range(1000)],size=1)
Move the resulting cube of points about with the mouse. What do you
notice?
15. The following consecutive values have been produced with an LCG:
116, 95, 109, 14, 163.
Use the method given on page 338 to find the recurrence used. Use the
command solve_mod to solve the simultaneous congruences.
16. The RSA generator can be sensitive to the starting value. Set p, q, e =
19, 23, 7 as before but set s
0
= 11. List the first 20 s
i
values. What do
you notice?
17. Repeat the last question but use e = 5 and ...