Math 470 Final Exam Sample Problems December 2, 2011

advertisement
Math 470
Final Exam Sample Problems
December 2, 2011
Please note: These problems only cover material since the second mid-term exam, and even then they do
not cover all possible topics or types of problems. Mainly they can serve to provide you with ideas on what
types of problems might be asked on this material.
1. Samantha uses the RSA signature scheme with primes p = 13 and q = 23 and public verification
exponent v = 53.
(a) What is Samantha’s public modulus? What is her private signing key?
(b) Samantha signs the digital document D = 100. What is the signature?
2. Given that 3 is a primitive root modulo 29, use Shanks’ Babystep-Giantstep Algorithm to find x so
that
3x ≡ 2 (mod 29).
3. Ryan and Terri are communicating using the ElGamal cryptosystem with prime p = 23 and primitive
root α = 7.
(a) Terri creates her public key by choosing the exponent a = 5. What is Terri’s public key?
(b) Ryan wants to send the message ‘3’ to Terri. Demonstrate how Ryan encrypts the message. Be
specific.
(c) Terri receives the encrypted message (c1 , c2 ) = (9, 6) from Ryan. What is his plaintext message?
4. In this problem we will work modulo 19. Consider the following table.
m
1
2
3 4 5
6
7
8
9 10 11 12
13m (mod 19) 13 17 12 4 14 11 10 16 18 6
2
7
13
15
14
5
15
8
16
9
17
3
(a) Calculate the discrete logarithms L13 (7) and L13 (7203 ).
(b) Alice and Bob are using the Diffie-Hellman key exchange protocol with (p, α) = (19, 13) to agree
on a key for a shift cipher. Bob’s secret exponent is 5, and he receives the message
11,
SVVRVBA.
What message did Alice send to him?
(c) What information did Bob exchange with Alice to notify her of the key they would be using?
5. Suppose p is a large prime and α is a primitive root for p. For m ∈ Z, define h(m) = αm (mod p).
(a) Explain how h is pre-image resistant.
(b) Show that h is not strongly collision-free by finding a counterexample.
6. Alice is signing a document using the ElGamal signature scheme. She is using p = 23 and α = 5. She
chooses a = 9 for her private exponent.
(a) What is Alice’s public key?
(b) Demonstrate how Alice signs the document D = 10. Be specific.
(c) How does Bob verify that Alice has signed the document?
7. Answer the following questions using the Hamming [7, 4] code.
(a) You receive (0, 1, 1, 0, 1, 1, 0). Does it contain any errors? Can you correct them?
(b) You receive (1, 1, 1, 1, 0, 0, 1). Does it contain any errors? Can you correct them?


1 0 1 0
8. You receive 0 1 0 0 using a two-dimensional parity check code. Does it contain any errors?
0 1 0 0
How many? Can you correct them?
18
1
Download