openssl/crypto/evp
Matt Caswell e6d06e11e9 Ensure EVP_PKEY_set1_DH detects X9.42 keys
OpenSSL supports both PKCS#3 and X9.42 DH keys. By default we use PKCS#3
keys. The function `EVP_PKEY_set1_DH` was assuming that the supplied DH
key was a PKCS#3 key. It should detect what type of key it is and assign
the correct type as appropriate.

Fixes #10592

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10593)

(cherry picked from commit 32c869ffaba67822602ea9fec611272ff8e8db58)
2019-12-16 14:34:26 +00:00
..
bio_b64.c Set error code on alloc failures 2018-04-03 11:31:16 -04:00
bio_enc.c Update copyright year 2018-04-17 15:18:40 +02:00
bio_md.c Reorganize local header files 2019-09-27 23:58:06 +02:00
bio_ok.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
build.info s390x assembly pack: add KIMD/KLMD code path for sha3/shake 2018-08-06 12:04:52 +02:00
c_allc.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
c_alld.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
cmeth_lib.c Reorganize local header files 2019-09-27 23:58:06 +02:00
digest.c Reorganize local header files 2019-09-27 23:58:06 +02:00
e_aes.c Fix some typos 2019-12-11 19:17:00 +01:00
e_aes_cbc_hmac_sha1.c Define AESNI_ASM if AESNI assembler is included, and use it 2019-10-03 15:07:26 +02:00
e_aes_cbc_hmac_sha256.c Define AESNI_ASM if AESNI assembler is included, and use it 2019-10-03 15:07:26 +02:00
e_aria.c Allow specifying the tag after AAD in CCM mode (2) 2019-11-20 11:07:07 +01:00
e_bf.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
e_camellia.c Reorganize local header files 2019-09-27 23:58:06 +02:00
e_cast.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
e_chacha20_poly1305.c Reorganize local header files 2019-09-27 23:58:06 +02:00
e_des.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
e_des3.c Reorganize local header files 2019-09-27 23:58:06 +02:00
e_idea.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
e_null.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
e_old.c
e_rc2.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
e_rc4.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
e_rc4_hmac_md5.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
e_rc5.c Reorganize local header files 2019-09-27 23:58:06 +02:00
e_seed.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
e_sm4.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
e_xcbc_d.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
encode.c Reorganize local header files 2019-09-27 23:58:06 +02:00
evp_cnf.c
evp_enc.c EVP_*Update: ensure that input NULL with length 0 isn't passed 2019-11-29 11:05:35 +00:00
evp_err.c Ensure that rc5 doesn't try to use a key longer than 2040 bits 2019-07-01 10:23:54 +01:00
evp_key.c
evp_lib.c Reorganize local header files 2019-09-27 23:58:06 +02:00
evp_local.h Reorganize local header files 2019-09-27 23:58:06 +02:00
evp_pbe.c Reorganize local header files 2019-09-27 23:58:06 +02:00
evp_pkey.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
m_md2.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
m_md4.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
m_md5.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
m_md5_sha1.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
m_mdc2.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
m_null.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
m_ripemd.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
m_sha1.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
m_sha3.c Reorganize local header files 2019-09-27 23:58:06 +02:00
m_sigver.c Reorganize local header files 2019-09-27 23:58:06 +02:00
m_wp.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
names.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
p5_crpt.c
p5_crpt2.c Reorganize local header files 2019-09-27 23:58:06 +02:00
p_dec.c
p_enc.c
p_lib.c Ensure EVP_PKEY_set1_DH detects X9.42 keys 2019-12-16 14:34:26 +00:00
p_open.c Update copyright year 2019-05-28 14:49:38 +02:00
p_seal.c Update copyright year 2018-09-11 13:45:17 +01:00
p_sign.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
p_verify.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
pbe_scrypt.c Update copyright year 2018-04-03 13:57:12 +01:00
pmeth_fn.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
pmeth_gn.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
pmeth_lib.c Add missing EVP_PKEY_METHOD accessors for digestsign and digestverify 2019-11-17 11:51:10 +01:00