@CodesInChaos I have a question. Is it possible to ask it to you or don't you have time?
Alice and Bill use the Diffie-Hellman protocol at the group $\mathbb{Z}_{61}^{\star}$ with base $g=\overline{2}$ (it's a generator). Alice sends to Bill the value $y_A=\overline{38}$ and Bill sends the value $y_B=\overline{50}$. You watch the communication and you know these values. Calculate the common key that they create. @CodesInChaos
@CodesInChaos We found the private key from Alice which is 27. How can we find the shared key? What would be a faster algorithm? Yes I am doing the computation with pen and paper.
@CodesInChaos Is there a trick how to find an a and an i such that if n-1=2^t*u, then $a^{2^{i-1}u} \not\equiv \pm 1 \mod n$ and $a^{2^{i} u} \equiv 1 \mod n$ ? (Rabin-Miller)