- if (primes > RSA_DEFAULT_PRIME_NUM && quo < RSA_MIN_PRIME_SIZE) {
- /*
- * this means primes are too many for the key bits.
- *
- * This only affects multi-prime keys. For normal RSA,
- * it's limited above (bits >= 16, hence each prime >= 8).
- *
- * This is done in this way because the original normal
- * RSA's behavior should not alter at least in OpenSSL 1.1.1.
- */
- RSAerr(RSA_F_RSA_BUILTIN_KEYGEN, RSA_R_KEY_PRIME_NUM_INVALID);
- goto err;
- }
-