New RSA keymgmt implementation to handle import / export of RSA keys
[openssl.git] / crypto / rsa / rsa_gen.c
index c87b709722c7a017ca2103ac229d3e6a58600905..cb2abff6a1b6ed54ada3261736eb7ab446bb030d 100644 (file)
@@ -108,6 +108,8 @@ static int rsa_builtin_keygen(RSA *rsa, int bits, int primes, BIGNUM *e_value,
     for (i = 0; i < primes; i++)
         bitsr[i] = (i < rmd) ? quo + 1 : quo;
 
+    rsa->dirty_cnt++;
+
     /* We need the RSA components non-NULL */
     if (!rsa->n && ((rsa->n = BN_new()) == NULL))
         goto err;