if (EVP_EncryptFinal_ex(&cipher, body, &out_len) != 1) {
SET_OSSL_ERROR("Error while finalizing the data using the symmetric cipher");
EVP_CIPHER_CTX_cleanup(&cipher);
- cryptogram_free(cryptogram);
return 0;
}
{
unsigned char *envelope_key = NULL, *output = NULL;
- if (!ctx || !cryptogram || !length || !error) {
+ if (!ctx || !cryptogram || !length) {
SET_ERROR("Invalid argument");
goto err;
}