Decrypt data using the private key bound to ctx.
Declared in <openssl/evp.h>
int
EVP_PKEY_decrypt(
EVP_PKEY_CTX* ctx,
unsigned char* out,
size_t* outlen,
unsigned char const* in,
size_t inlen);
1 on success, or 0 / a negative value on failure.
| Name | Description |
|---|---|
| ctx | Context previously initialized with EVP_PKEY_decrypt_init(). |
| out | Buffer receiving plaintext, or NULL to query the required size. |
| outlen | In/out length of out; on return holds bytes written or needed. |
| in | Ciphertext bytes to decrypt. |
| inlen | Length of in in bytes. |