[#EVP_Cipher-0f] = EVP_Cipher :mrdocs: Encrypt or decrypt up to `inl` bytes from `in` into `out` (legacy one‐shot). == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_Cipher( xref:EVP_CIPHER_CTX.adoc[EVP_CIPHER_CTX]* c, unsigned char* out, unsigned char const* in, unsigned int inl); ---- == Description Prefer EVP_CipherUpdate() and EVP_CipherFinal_ex() for new code. == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *c* | Cipher context already initialized for encrypt or decrypt. | *out* | Output buffer for the transformed bytes. | *in* | Input bytes to process. | *inl* | Number of input bytes; for legacy ciphers without EVP_CIPH_FLAG_CUSTOM_CIPHER must be a multiple of the block size. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#