* @unsigned nbits@ = required modulus size in bits
* @grand *r@ = random number source
* @unsigned n@ = number of attempts to make
* @unsigned nbits@ = required modulus size in bits
* @grand *r@ = random number source
* @unsigned n@ = number of attempts to make
-int rsa_gen(rsa_param *rp, unsigned nbits, grand *r, unsigned n,
+int rsa_gen(rsa_priv *rp, unsigned nbits, grand *r, unsigned n,