Lines Matching refs:priv
544 static int rsa_keygen(int bits, EVP_PKEY **pub, EVP_PKEY **priv) in rsa_keygen() argument
552 if (!TEST_ptr(*priv = EVP_PKEY_Q_keygen(libctx, NULL, "RSA", (size_t)bits)) in rsa_keygen()
554 OSSL_ENCODER_CTX_new_for_pkey(*priv, in rsa_keygen()
574 EVP_PKEY *priv = NULL; in kem_rsa_gen_recover() local
582 ret = TEST_true(rsa_keygen(bits, &pub, &priv)) in kem_rsa_gen_recover()
595 && TEST_ptr(rctx = EVP_PKEY_CTX_new_from_pkey(libctx, priv, NULL)) in kem_rsa_gen_recover()
619 EVP_PKEY_free(priv); in kem_rsa_gen_recover()
662 EVP_PKEY *priv = NULL; in kem_rsa_params() local
668 ret = TEST_true(rsa_keygen(2048, &pub, &priv)) in kem_rsa_params()
670 && TEST_ptr(privctx = EVP_PKEY_CTX_new_from_pkey(libctx, priv, NULL)) in kem_rsa_params()
725 EVP_PKEY_free(priv); in kem_rsa_params()