rsa_keygen
static int rsa_keygen(OSSL_LIB_CTX *libctx, RSA *rsa, int bits, int primes,
if (rsa->meth->rsa_keygen != NULL)
return rsa->meth->rsa_keygen(rsa, bits, e_value, cb);
} else if (rsa->meth->rsa_keygen != NULL) {
return rsa->meth->rsa_keygen(rsa, bits, e_value, cb);
return rsa_keygen(rsa->libctx, rsa, bits, primes, e_value, cb, 0);
int (*rsa_keygen)(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);
return meth->rsa_keygen;
meth->rsa_keygen = keygen;
ret = TEST_true(rsa_keygen(bits, &pub, &priv))
ret = TEST_true(rsa_keygen(2048, &pub, &priv))