Fixes #20291
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20306)
else
rc = EVP_EncryptFinal_ex(ctx, buf, &outl);
- if (rc <= 1)
+ if (rc == 0)
BIO_printf(bio_err, "Error finalizing cipher loop\n");
return count;
}
else
final = EVP_EncryptFinal_ex(ctx, buf, &outl);
- if (final <= 1)
+ if (final == 0)
BIO_printf(bio_err, "Error finalizing ccm loop\n");
return realcount;
}