Store some FIPS global variables in the FIPS_GLOBAL structure
[openssl.git] / providers / implementations / kem / rsa_kem.c
index 3809bfb8b19392f1d223a1d948c8b33b963c3f0e..9aa0a7aaeea6987c2f8903f96a3ffdfcab575fe6 100644 (file)
@@ -125,7 +125,7 @@ static int rsakem_init(void *vprsactx, void *vrsa,
     if (prsactx == NULL || vrsa == NULL)
         return 0;
 
-    if (!ossl_rsa_check_key(vrsa, operation))
+    if (!ossl_rsa_check_key(prsactx->libctx, vrsa, operation))
         return 0;
 
     if (!RSA_up_ref(vrsa))