EVP_PKEY_encrypt_init_ex

Initialize a key context for public-key encryption with optional parameters.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_encrypt_init_ex(
    EVP_PKEY_CTX* ctx,
    OSSL_PARAM const params[]);

Return Value

1 on success, or a non-positive value on failure.

Parameters

NameDescription
ctxContext holding the public key for encryption.
paramsOptional OSSL_PARAM array terminated by OSSL_PARAM_END, or NULL.