openssl/crypto/dh
Tomas Mraz 2c0f7d46b8 Replace size check with more meaningful pubkey check
It does not make sense to check the size because this
function can be used in other contexts than in TLS-1.3 and
the value might not be padded to the size of p.

However it makes sense to do the partial pubkey check because
there is no valid reason having the pubkey value outside the
1 < pubkey < p-1 bounds.

Fixes #15465

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17630)
2022-02-07 16:32:40 +01:00
..
build.info EVP_PKEY & DH: Make DH EVP_PKEY_CTX parameter ctrls / setters more available 2020-12-16 11:55:39 +01:00
dh_ameth.c Fix EVP todata and fromdata when used with selection of EVP_PKEY_PUBLIC_KEY. 2022-02-03 13:48:42 +01:00
dh_asn1.c Update copyright year 2021-03-11 13:27:36 +00:00
dh_backend.c Fix EVP todata and fromdata when used with selection of EVP_PKEY_PUBLIC_KEY. 2022-02-03 13:48:42 +01:00
dh_check.c Fix DH private key check. 2021-06-16 11:25:24 +01:00
dh_depr.c Update copyright year 2020-04-23 13:55:52 +01:00
dh_err.c err: rename err_load_xxx_strings_int functions 2021-05-26 13:01:47 +10:00
dh_gen.c Update copyright year 2021-03-11 13:27:36 +00:00
dh_group_params.c Move e_os.h to include/internal 2022-02-05 05:31:09 +01:00
dh_kdf.c Move e_os.h to include/internal 2022-02-05 05:31:09 +01:00
dh_key.c Replace size check with more meaningful pubkey check 2022-02-07 16:32:40 +01:00
dh_lib.c fips module header inclusion fine-tunning 2021-07-06 10:52:27 +10:00
dh_local.h Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 2020-10-15 11:59:53 +01:00
dh_meth.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
dh_pmeth.c Update our EVP_PKEY_METHODs to get low level keys via public APIs 2021-07-22 13:52:46 +02:00
dh_prn.c Convert all {NAME}err() in crypto/ to their corresponding ERR_raise() call 2020-11-13 09:35:02 +01:00
dh_rfc5114.c Update copyright year 2021-03-11 13:27:36 +00:00