openssl/crypto/cms
Neil Horman 6f22bcd631 Add appropriate NULL checks in EVP_CIPHER api
The EVP_CIPHER api currently assumes that calls made into several APIs
have already initalized the cipher in a given context via a call to
EVP_CipherInit[_ex[2]].  If that hasnt been done, instead of an error,
the result is typically a SIGSEGV.

Correct that by adding missing NULL checks in the apropriate apis prior
to using ctx->cipher

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22995)
2024-01-25 08:27:53 -05:00
..
build.info
cms_asn1.c crypto: Fix various typos, repeated words, align some spelling to LDP. 2022-10-12 16:55:01 +11:00
cms_att.c Allow duplicate CMS attributes 2024-01-03 12:41:31 +01:00
cms_cd.c Convert ZLIB defines to OPENSSL_NO_ZLIB 2022-10-18 09:30:21 -04:00
cms_dd.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cms_dh.c Copyright year updates 2023-09-07 09:59:15 +01:00
cms_ec.c Copyright year updates 2023-09-07 09:59:15 +01:00
cms_enc.c cms_enc.c: Include crypto/asn1.h for struct asn1_object_st 2023-10-19 10:15:56 +02:00
cms_env.c Copyright year updates 2023-09-07 09:59:15 +01:00
cms_err.c CMS_add1_signer(): add missing ERR_raise() calls 2023-10-17 22:02:29 +02:00
cms_ess.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cms_io.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
cms_kari.c
cms_lib.c Copyright year updates 2023-09-07 09:59:15 +01:00
cms_local.h Copyright year updates 2023-09-07 09:59:15 +01:00
cms_pwri.c Add appropriate NULL checks in EVP_CIPHER api 2024-01-25 08:27:53 -05:00
cms_rsa.c Fix memleak in rsa_cms_decrypt 2023-12-29 10:39:34 +01:00
cms_sd.c CMS and PKCS7: fix handlling of EVP_PKEY_get_size() failure 2023-10-26 16:03:48 +01:00
cms_smime.c Fix a possible memleak in CMS_sign_receipt 2023-11-22 09:31:03 +01:00