]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/rsa/rsa_sp800_56b_gen.c
New RSA keymgmt implementation to handle import / export of RSA keys
[thirdparty/openssl.git] / crypto / rsa / rsa_sp800_56b_gen.c
index c22b10cfbded34d52c0a7a1ca6011af5f9177fba..5474aaa4b5b66c07febf881cdb4caedd77ed94bc 100644 (file)
@@ -118,6 +118,7 @@ int rsa_fips186_4_gen_prob_primes(RSA *rsa, BIGNUM *p1, BIGNUM *p2,
             continue;
         break; /* successfully finished */
     }
+    rsa->dirty_cnt++;
     ret = 1;
 err:
     /* Zeroize any internally generated values that are not returned */
@@ -239,6 +240,7 @@ int rsa_sp800_56b_derive_params_from_pq(RSA *rsa, int nbits,
             || BN_mod_inverse(rsa->iqmp, rsa->q, rsa->p, ctx) == NULL)
         goto err;
 
+    rsa->dirty_cnt++;
     ret = 1;
 err:
     if (ret != 1) {