[#EVP_PKEY_decrypt] = EVP_PKEY_decrypt :mrdocs: Decrypt data using the private key bound to `ctx.` == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_PKEY_decrypt( xref:EVP_PKEY_CTX.adoc[EVP_PKEY_CTX]* ctx, unsigned char* out, size_t* outlen, unsigned char const* in, size_t inlen); ---- == Return Value 1 on success, or 0 / a negative value on failure. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#