1

I have a question, I am trying to implement the encryption protocol between server and client based on Diffie-Hellman problem.

The problem is when I tried to ((t^RsRc) mod p)^(1/Rc mod q) it is not giving me (t^Rs) mod p.

I have checked even if I am doing ((t^Rc) mod p)^(1/Rc mod q) t.modPow(Rc, p)).modPow(Rc.modInverse(q), p) it is not giving me t.

Maarten Bodewes
  • 90,524
  • 13
  • 150
  • 263

0 Answers0