Ex1. Alice has agreed with Bob on p=29 and n=11 to use in DH-KAP.

  1. Confirm that n is primitive modulo p.
  2. If Alice's secret exponent is a=19 and she received n\(^b=12(mod p)\) from Bob then:
    1. Compute n\(^a(mod p)\) that she sent to Bob.
    2. Compute their agreed secret key K\(_{ab}\).
2013-09-13, yuqi