Add checks to the return value of EVP_Cipher to prevent silent encryption failure.