[#EVP_DecryptUpdate]
= EVP&lowbar;DecryptUpdate
:mrdocs:

Decrypt a chunk of ciphertext into `out,` updating the cipher context&period;

== Synopsis

Declared in `&lt;openssl&sol;evp&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;DecryptUpdate(
    xref:EVP_CIPHER_CTX.adoc[EVP&lowbar;CIPHER&lowbar;CTX]* ctx,
    unsigned char* out,
    int* outl,
    unsigned char const* in,
    int inl);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Cipher context initialized for decryption&period;
| *out*
| Output buffer for plaintext (may be NULL to pass AAD for AEAD ciphers)&period;
| *outl*
| Receives the number of plaintext bytes written&period;
| *in*
| Ciphertext (or AAD) bytes to process&period;
| *inl*
| Number of bytes at `in&period;`
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
