Lines Matching refs:Ra
64 static gcry_mpi_t p, Ra;
194 Ra = gcry_mpi_new(0);
205 /* Generate our random number Ra. */
212 gcry_mpi_scan(&Ra, GCRYMPI_FMT_USG, Ra_binary, PRIMEBITS/8, NULL);
216 /* Ma = g^Ra mod p. This is our "public" key */
217 gcry_mpi_powm(Ma, g, Ra, p);
259 /* We will only need p and Ra later, but mustn't forget to release it ! */
385 /* Now finally generate the Key: K = Mb^Ra mod p */
386 gcry_mpi_powm(K, Mb, Ra, p);
486 gcry_mpi_release(Ra);