-.\" $OpenBSD: EVP_PKEY_keygen.3,v 1.13 2023/09/10 04:05:26 jsg Exp $
+.\" $OpenBSD: EVP_PKEY_keygen.3,v 1.14 2024/07/21 08:02:17 tb Exp $
.\" full merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100
.\"
.\" This file is a derived work.
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: September 10 2023 $
+.Dd $Mdocdate: July 21 2024 $
.Dt EVP_PKEY_KEYGEN 3
.Os
.Sh NAME
#include <openssl/rsa.h>
EVP_PKEY_CTX *ctx;
-ENGINE *eng;
EVP_PKEY *pkey = NULL, *param;
-/* Assumes that param and eng are already set up. */
-ctx = EVP_PKEY_CTX_new(param, eng);
+/* Assumes that param is already set up. */
+ctx = EVP_PKEY_CTX_new(param, NULL);
if (!ctx)
/* Error occurred */
if (EVP_PKEY_keygen_init(ctx) <= 0)