Prepare this assignment on paper by (a) writing your responses in LaTeX with no line longer than 70 characters, (b) compiling the LaTeX file with pdflatex to a PDF file, (c) printing the LaTeX source as plain text, (d) printing the compiled version, and (e) submitting the versions printed in (c) and (d) together at the class meeting. In the write-up for each exercise repeat its statement before introducing your solution. A very simple sketch of how this might be done is available in the course web as:
Be sure to explain what you have done to answer these questions.
Two parties A and B agree to construct a private key in the multiplicative group modulo the number 40487 by negotiations in public using the method of Diffie-Hellman key exchange. They agree to use 5 as the generator. If A uses 127 as secret exponent,
what value does A send to B?
if, for the same transaction, B sends the value 16874 to A, what value is the jointly constructed private key?
Recall that ASCII codes corresponding to the characters used in normal English text strings are values from 1 to 126, and, therefore, may be regarded as elements of the multiplicative group modulo the prime 127.
Two parties agree to exchange messages using El Gamal cryptography based on the multiplicative group modulo 127, generator 3, and secret exponent 29 with the resulting public key 55. Under this agreement one of them sends the other the following vector of pairs representing coded text:
What is the coded text? (A file suitable for reading this vector of pairs into gp is “assgt/coded-string”.)