EVP_PKEY_encrypt_init

Initialise ctx for public-key encryption.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PKEY_encrypt_init(EVP_PKEY_CTX* ctx);

Return Value

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

Parameters

NameDescription
ctxKey context holding the public key (or key pair) used to encrypt.