openssl/providers/implementations
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
..
asymciphers Add missing settable entry OSSL_ASYM_CIPHER_PARAM_OAEP_DIGEST_PROPS for RSA asym 2023-12-29 10:41:06 +01:00
ciphers Fix partial block encryption in cfb and ofb for s390x 2024-01-12 10:34:39 +01:00
digests cleanse stack variable in blake2[b|s] finalization 2024-01-03 12:42:01 -05:00
encode_decode Fix the encoding of SM2 keys 2024-01-12 11:07:39 +01:00
exchange
include/prov
kdfs Add appropriate NULL checks in EVP_CIPHER api 2024-01-25 08:27:53 -05:00
kem
keymgmt Fix new typos found by codespell 2023-12-29 10:12:05 +01:00
macs Ignore OSSL_MAC_PARAM_DIGEST_NOINIT/OSSL_MAC_PARAM_DIGEST_ONESHOT 2023-12-26 10:36:00 -05:00
rands
signature Initialize dstctx->mgf1_md to NULL in rsa_dupctx function 2023-11-30 18:45:15 +01:00
storemgmt
build.info