Encrypt or decrypt up to inl bytes from in into out (legacy one-shot).
Declared in <openssl/evp.h>
int
EVP_Cipher(
EVP_CIPHER_CTX* c,
unsigned char* out,
unsigned char const* in,
unsigned int inl);
Prefer EVP_CipherUpdate() and EVP_CipherFinal_ex() for new code.
1 on success, or 0 on failure.
| 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. |