void *pfnparam)
{
Bignum pm1, qm1, phi_n;
+ unsigned pfirst, qfirst;
/*
* Set up the phase limits for the progress report. We do this
* general that's slightly more fiddly to arrange. By choosing
* a prime e, we can simplify the criterion.)
*/
+ invent_firstbits(&pfirst, &qfirst);
key->p = primegen(bits / 2, RSA_EXPONENT, 1, NULL,
- 1, pfn, pfnparam);
+ 1, pfn, pfnparam, pfirst);
key->q = primegen(bits - bits / 2, RSA_EXPONENT, 1, NULL,
- 2, pfn, pfnparam);
+ 2, pfn, pfnparam, qfirst);
/*
* Ensure p > q, by swapping them if not.