openssl/crypto/evp
Matt Caswell 3101ab603c Fix an EVP_MD_CTX leak
If we initialise an EVP_MD_CTX with a legacy MD, and then reuse the same
EVP_MD_CTX with a provided MD then we end up leaking the md_data.

We need to ensure we free the md_data if we change to a provided MD.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12779)
2020-09-10 11:35:42 +02:00
..
bio_b64.c
bio_enc.c
bio_md.c
bio_ok.c Add and use internal header that implements endianness check 2020-07-11 10:00:33 +02:00
build.info Delete unused PKEY MAC files 2020-08-29 17:40:11 +10:00
c_allc.c
c_alld.c
cmeth_lib.c Update copyright year 2020-08-06 13:22:30 +01:00
digest.c Fix an EVP_MD_CTX leak 2020-09-10 11:35:42 +02:00
e_aes_cbc_hmac_sha1.c Use local IV storage in e_aes_ebc_hmac_sha1.c 2020-08-11 07:07:57 -07:00
e_aes_cbc_hmac_sha256.c Use local IV storage in e_aes_ebc_hmac_sha256.c 2020-08-11 07:07:57 -07:00
e_aes.c Use local IV storage in e_aes.c 2020-08-11 07:07:57 -07:00
e_aria.c Use local IV storage in e_aria.c 2020-08-11 07:07:58 -07:00
e_bf.c Use local IV storage in EVP BLOCK_* macros 2020-08-11 07:07:58 -07:00
e_camellia.c Use local IV storage in e_camellia.c 2020-08-11 07:07:58 -07:00
e_cast.c Use local IV storage in EVP BLOCK_* macros 2020-08-11 07:07:58 -07:00
e_chacha20_poly1305.c Update copyright year 2020-07-16 14:47:04 +02:00
e_des3.c Use local IV storage in e_des3.c 2020-08-11 07:07:58 -07:00
e_des.c Use local IV storage in e_des.c 2020-08-11 07:07:58 -07:00
e_idea.c Use local IV storage in EVP BLOCK_* macros 2020-08-11 07:07:58 -07:00
e_null.c
e_old.c
e_rc2.c Use local IV storage in EVP BLOCK_* macros 2020-08-11 07:07:58 -07:00
e_rc4_hmac_md5.c
e_rc4.c
e_rc5.c
e_seed.c Use local IV storage in EVP BLOCK_* macros 2020-08-11 07:07:58 -07:00
e_sm4.c Use local IV storage in e_sm4.c 2020-08-11 07:07:58 -07:00
e_xcbc_d.c Use local IV storage in e_xcbc_d.c 2020-08-11 07:07:58 -07:00
encode.c Update copyright year 2020-06-25 14:13:12 +01:00
evp_cnf.c Load the default config file before working with default properties 2020-08-17 11:27:51 +01:00
evp_enc.c Retire EVP_CTRL_GET_IV 2020-08-11 07:07:57 -07:00
evp_err.c Extend the EVP_PKEY KDF to KDF provider bridge to also support HKDF 2020-08-10 14:51:59 +01:00
evp_fetch.c Load the default config file before working with default properties 2020-08-17 11:27:51 +01:00
evp_key.c
evp_lib.c Add CMS AuthEnvelopedData with AES-GCM support 2020-09-08 15:43:11 +02:00
evp_local.h Add CMS AuthEnvelopedData with AES-GCM support 2020-09-08 15:43:11 +02:00
evp_pbe.c
evp_pkey.c EVP: Downgrade EVP_PKEYs in EVP_PKEY2PKCS8() 2020-09-03 17:48:32 +02:00
evp_rand.c rand_drbg: remove RAND_DRBG. 2020-08-07 14:16:47 +10:00
evp_utils.c
exchange.c Add public API for gettables and settables for keymanagement, signatures and key exchange. 2020-08-12 11:59:43 +10:00
kdf_lib.c Revert "kdf: make function naming consistent." 2020-07-16 14:21:07 +02:00
kdf_meth.c gettables: core changes to pass the provider context. 2020-08-07 08:02:14 +10:00
keymgmt_lib.c EVP KEYMGMT utils: Make a few more utility functions available 2020-07-24 16:32:00 +02:00
keymgmt_meth.c Add public API for gettables and settables for keymanagement, signatures and key exchange. 2020-08-12 11:59:43 +10:00
legacy_blake2.c
legacy_md2.c
legacy_md4.c
legacy_md5_sha1.c
legacy_md5.c
legacy_mdc2.c
legacy_meth.h
legacy_ripemd.c
legacy_sha.c
legacy_wp.c
m_null.c
m_sigver.c Fix an EVP_MD_CTX leak 2020-09-10 11:35:42 +02:00
mac_lib.c Ensure EVP_MAC_update() passes the length even if it is 0 2020-09-03 09:40:52 +01:00
mac_meth.c gettables: core changes to pass the provider context. 2020-08-07 08:02:14 +10:00
names.c
p5_crpt2.c Add evp_test fixes. 2020-08-07 14:29:00 +10:00
p5_crpt.c
p_dec.c
p_enc.c
p_lib.c PEM: Make PEM_write_bio_PrivateKey_traditional() handle provider-native keys 2020-09-08 16:45:11 +02:00
p_open.c
p_seal.c
p_sign.c Add EVP signature with libctx methods. 2020-08-09 17:34:52 +10:00
p_verify.c Add EVP signature with libctx methods. 2020-08-09 17:34:52 +10:00
pbe_scrypt.c Add evp_test fixes. 2020-08-07 14:29:00 +10:00
pmeth_check.c
pmeth_fn.c Make the naming scheme for dispatched functions more consistent 2020-06-24 22:01:22 +02:00
pmeth_gn.c EVP: Preserve the EVP_PKEY id in a few more spots 2020-09-08 06:25:27 +02:00
pmeth_lib.c EVP: Move the functions and controls for setting and getting distid 2020-09-08 12:07:40 +02:00
signature.c EVP: Add support for delayed EVP_PKEY operation parameters 2020-09-08 12:06:35 +02:00