I'm trying to figure out how to demonstrate DH key exchange using what is given to me. I'm unsure of how to tackle the problem.
Question:
Demonstrate Diffie-Hellman key exchange.
Given p=104933, A=324, B=5832. Prime factors for p-1 {2,37,709}
A and B are Alice and Bob secret keys respectively.
What is the value of the shared key?
Process to solve:
So there are 5 steps to DH key exchange.
- Alice and Bob share prime p and generator g
- Alice sends g^a mod p to Bob
- Bob sends g^b mod p to Alice
- Alice computes the shared key
- Bob computes the shared key
I get stuck at step 1 though because I'm unsure of how I'm supposed to find the generator given this information.