YALE UNIVERSITY
DEPARTMENT OF COMPUTER SCIENCE
| CPSC 467a: Cryptography and Computer Security | Handout #14 | |
| Professor M. J. Fischer | November 5, 2008 | |
Problem Set 5
Due before midnight on Friday, November 14, 2008.
Write three computer programs to implement the Goldwasser-Micali Probabilistic cryptosystem as described in section 67 of lecture notes 15. The three programs are:
Qn00. It writes the public key (n,y) to the
public key output file as a pair of whitespace-separated decimal integers. It writes the private
key p to the private key output file as a single decimal integer.
Your program should be written in C, C++, or Java and should use one of the big number libraries discussed in Section 39 of lecture notes 8 (if using C or C++) or using the appropriate Java class libraries (if using Java). You may use any of the provided functions in solving this problem. In particular, you do not need to implement your own primality testing function, modular exponentiation function, or random number generator if the versions provided by the package are adequate for this problem.