Lines Matching refs:Ra
45 static gcry_mpi_t p, g, Ra;
248 Ra = gcry_mpi_new(0);
251 /* Generate our random number Ra. */
258 gcry_mpi_scan(&Ra, GCRYMPI_FMT_USG, Ra_binary, PRIMEBITS/8, NULL);
262 /* Ma = g^Ra mod p. This is our "public" key */
263 gcry_mpi_powm(Ma, g, Ra, p);
305 /* We will need Ra later, but mustn't forget to release it ! */
428 /* Now finally generate the Key: K = Mb^Ra mod p */
429 gcry_mpi_powm(K, Mb, Ra, p);
527 gcry_mpi_release(Ra);