openssl/crypto/evp
Richard Levitte a8154452e5 EVP: Take care of locks when downgrading an EVP_PKEY
The temporary copy that's made didn't have a lock, which could end up
with a crash.  We now handle locks a bit better, and take extra care to
lock it and keep track of which lock is used where and which lock is
thrown away.

Fixes #12876

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12978)
2020-10-13 06:45:58 +02:00
..
asymcipher.c EVP: use evp_pkey_ctx_is_legacy() to find what implementation to use 2020-10-01 19:54:10 +02:00
bio_b64.c
bio_enc.c
bio_md.c
bio_ok.c
build.info Add KEM (Key encapsulation mechanism) support to providers 2020-09-19 18:08:46 +10:00
c_allc.c
c_alld.c
cmeth_lib.c
digest.c Run the withlibctx.pl script 2020-10-01 09:25:20 +01:00
e_aes_cbc_hmac_sha1.c
e_aes_cbc_hmac_sha256.c
e_aes.c
e_aria.c
e_bf.c
e_camellia.c
e_cast.c
e_chacha20_poly1305.c
e_des3.c
e_des.c
e_idea.c
e_null.c
e_old.c
e_rc2.c
e_rc4_hmac_md5.c
e_rc4.c
e_rc5.c
e_seed.c
e_sm4.c
e_xcbc_d.c
encode.c
evp_cnf.c Fix safestack issues in conf.h 2020-09-13 11:11:20 +01:00
evp_enc.c EVP: Centralise fetching error reporting 2020-09-13 20:52:48 +02:00
evp_err.c Prune low-level ASN.1 parse errors from error queue in decoder_process() 2020-09-24 14:34:56 +02:00
evp_fetch.c EVP: Centralise fetching error reporting 2020-09-13 20:52:48 +02:00
evp_key.c
evp_lib.c
evp_local.h rand: reference count the EVP_RAND contexts. 2020-09-23 08:39:43 +10:00
evp_pbe.c Prune low-level ASN.1 parse errors from error queue in decoder_process() 2020-09-24 14:34:56 +02:00
evp_pkey.c Run the withlibctx.pl script 2020-10-01 09:25:20 +01:00
evp_rand.c evp_rand: fix bug in gettable_ctx/settable_ctx calls 2020-09-23 15:28:29 +10:00
evp_utils.c
exchange.c EVP: use evp_pkey_ctx_is_legacy() to find what implementation to use 2020-10-01 19:54:10 +02:00
kdf_lib.c kdf/mac: add name query calls for KDFs and MACs 2020-09-23 15:28:29 +10:00
kdf_meth.c
kem.c Add EVP_KEM_gettable_ctx_params() and EVP_KEM_settable_ctx_params() 2020-09-26 07:13:21 +10:00
keymgmt_lib.c
keymgmt_meth.c Correctly display the signing/hmac algorithm in the dgst app 2020-09-17 11:12:08 +03: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 EVP: use evp_pkey_ctx_is_legacy() to find what implementation to use 2020-10-01 19:54:10 +02:00
mac_lib.c kdf/mac: add name query calls for KDFs and MACs 2020-09-23 15:28:29 +10:00
mac_meth.c
names.c
p5_crpt2.c Run the withlibctx.pl script 2020-10-01 09:25:20 +01:00
p5_crpt.c PKCS5 PBE: free allocations on unlikely / impossible failure path 2020-09-16 07:22:43 +10:00
p_dec.c
p_enc.c
p_lib.c EVP: Take care of locks when downgrading an EVP_PKEY 2020-10-13 06:45:58 +02:00
p_open.c
p_seal.c
p_sign.c Run the withlibctx.pl script 2020-10-01 09:25:20 +01:00
p_verify.c Run the withlibctx.pl script 2020-10-01 09:25:20 +01:00
pbe_scrypt.c
pmeth_check.c
pmeth_gn.c Add SM2 signature algorithm to default provider 2020-09-22 08:18:09 +01:00
pmeth_lib.c rsa: add ossl_ prefix to internal rsa_ calls. 2020-10-07 09:04:51 +10:00
signature.c EVP: use evp_pkey_ctx_is_legacy() to find what implementation to use 2020-10-01 19:54:10 +02:00