Hey all,
I am using EVP APIs to do AES 256 encryption. I have a question regarding EVP_EncryptFinal_ex. The documentation says this API is used to encrypt the last few bytes if any remaining. Is this API required? I am allocating the cipher text size before passing into EVP_EncryptUpdate in the order of AES_BLOCK_SIZE (16). So for example my plaintext length is 20 bytes, I am allocating cipher text as 32 bytes before passing into EVP_EncryptUpdate. Will I need to use EVP_EncryptFinal_ex regardless of the length allocated? Thank you, Tarani