CS458-658 Network Security

HomeWork 2


From Stallings (do not use computer for any of these problems):


  1. (CRT) 
  2. (QR)
  3. (Factoring)
  4. [DH] Let p=11 be the modulus.
    1. What (sub)groups of Z*p are generated by the following elements: 1, 2, 3, 4, 5, 8, 9, 10?
    2. Suppose that Alice and Bob run DH protocol and g=2 is selected. If Alice makes her secret a=4 and Bob makes his secret b=7, what will be
      • Alice's message to Bob?
      • Bob's msg to Alice?
      • How will Bob compute the shared secret from Alice's msg?
      • How will Alice compute the shared secret from Bob's msg?
      • Is the result the same?
    3. Now suppose that g=3, and do the previous item again.
    4. Would any of the above change if b=2? Is this a coincidence? Explain.
  5. [RSA] Let n=15.
    1. What are the elements of the group mod 15 (Z*15) ?
    2. What (sub)goups are generated by 1, 2, 3, 4, 7, 12, 13, 14?
  6. Now, suppose n=33.
    1. What are the elements of the group mod 33 (Z*33) ?
    2. What (sub)goups are generated by 1, 2, 3, 4, 5, 10, 30, 31, 32?
    3. Give examples of e,d pairs such that m^e mod 33 would "encrypt" the msg m and c^d mod 33 would decrypt the ciphertext c? Illustrate it for msgs 2,4, 5, 7, 29.
    4. Can you find such e,d for n=35?