Make the RSA ASYM_CIPHER implementation available inside the FIPS module
[openssl.git] / crypto / rsa / rsa_sp800_56b_gen.c
index 5474aaa4b5b66c07febf881cdb4caedd77ed94bc..1f8d01d4772f24660bcfa62866128b4149cf4606 100644 (file)
@@ -297,7 +297,7 @@ int rsa_sp800_56b_generate_key(RSA *rsa, int nbits, const BIGNUM *efixed,
     if (!rsa_sp800_56b_validate_strength(nbits, -1))
         return 0;
 
-    ctx = BN_CTX_new();
+    ctx = BN_CTX_new_ex(rsa->libctx);
     if (ctx == NULL)
         return 0;