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

Name

Description

ctx

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

Created with MrDocs