Finalize decryption and write any remaining plaintext (including padding removal).
Declared in <openssl/evp.h>
int
EVP_DecryptFinal_ex(
EVP_CIPHER_CTX* ctx,
unsigned char* outm,
int* outl);
1 on success, or 0 on failure (for example padding errors).
| Name | Description |
|---|---|
| ctx | Cipher context previously used with EVP_DecryptUpdate(). |
| outm | Buffer receiving final plaintext bytes (may need a full block of space). |
| outl | Receives the number of bytes written to outm. |