openssl/crypto
Frederik Wedel-Heinen 2c7d954c23 Handle 0 return values from DH key computations as errors
Returned 0 from ossl_dh_compute_key(), DH_compute_key_padded() and
DH_compute_key() needs to be treated as an error.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27673)

(cherry picked from commit 1c1ce2a6ee)
2025-06-03 14:28:33 +02:00
..
aes LoongArch: Fix output file name detection for Perl scripts 2025-02-14 11:35:41 +01:00
aria
asn1 Fix return value of the i2d_ASN1_bio_stream() call 2025-03-26 15:27:51 +01:00
async Copyright year updates 2024-09-05 09:35:49 +02:00
bf
bio BIO_dump_indent_cb(): Check for negative return from BIO_snprintf() 2025-04-28 17:29:33 +02:00
bn Moved crypto/bn/README.pod to internal manpages 2025-03-26 15:51:12 +01:00
buffer
camellia Copyright year updates 2024-09-05 09:35:49 +02:00
cast
chacha Fix test failures on big endian ARMv9 target 2025-04-14 15:47:53 +01:00
cmac Add FIPS indicator to CMAC. 2024-07-31 09:04:17 +10:00
cmp Fix potential leak in error path in cert_response() 2025-02-25 15:49:02 +01:00
cms Fix libctx passing for CMS PWRI use 2025-03-03 09:27:01 +01:00
comp
conf Copyright year updates 2024-09-05 09:35:49 +02:00
crmf Copyright year updates 2024-09-05 09:35:49 +02:00
ct
des Copyright year updates 2024-09-05 09:35:49 +02:00
dh Handle 0 return values from DH key computations as errors 2025-06-03 14:28:33 +02:00
dsa Fix potential use-after-free in REF_PRINT_COUNT 2024-12-10 14:58:51 +01:00
dso Fix potential use-after-free in REF_PRINT_COUNT 2024-12-10 14:58:51 +01:00
ec Fix P-384 curve on lower-than-P9 PPC64 targets 2025-04-25 20:04:54 +02:00
encode_decode Encoder : Fix floating pointer when OSSL_ENCODER_to_data() is called 2025-02-28 13:57:16 +01:00
engine Copyright year updates 2025-02-11 14:27:50 +00:00
err Move ssl_err.c into libcrypto 2025-03-03 10:41:44 +00:00
ess Copyright year updates 2024-09-05 09:35:49 +02:00
evp Note finished state in cipher BIO EOF 2025-05-29 16:02:51 +02:00
ffc Copyright year updates 2024-09-05 09:35:49 +02:00
hashtable ossl_ht_insert(): Allow for 4 iterations of grow_hashtable() 2024-08-22 14:52:43 +02:00
hmac s390x: Disable HMAC hardware acceleration when an engine is used for the digest 2024-09-03 21:15:00 +02:00
hpke Fix potential memory leak in OSSL_HPKE_CTX_new() 2024-10-30 11:59:33 +00:00
http Fix URL parsing to handle missing ports and ISO 8601 timestamps in paths 2025-04-23 11:27:26 +02:00
idea Copyright year updates 2024-09-05 09:35:49 +02:00
kdf
lhash Copyright year updates 2024-04-09 13:43:26 +02:00
md2
md4
md5 LoongArch: Fix output file name detection for Perl scripts 2025-02-14 11:35:41 +01:00
mdc2
modes fix small footprint builds on arm 2024-09-12 09:10:28 +10:00
objects Copyright year updates 2024-09-05 09:35:49 +02:00
ocsp Copyright year updates 2024-09-05 09:35:49 +02:00
pem Copyright year updates 2024-10-07 15:13:27 +02:00
perlasm SPARC assembly: Don't file aes-cbc on T4 with small sizes. 2025-02-14 11:43:05 +01:00
pkcs7 crypto/pkcs7/pk7_smime.c: Add BIO_free() to avoid memory leak 2025-05-27 19:49:32 +02:00
pkcs12 Copyright year updates 2025-02-11 14:27:50 +00:00
poly1305 Mark OPENSSL_armcap_P .hidden in arm asm 2024-11-22 11:23:07 +01:00
property crypto/property/property.c: Free impl->method to avoid memory leak 2025-05-29 16:40:17 +02:00
rand Check rand_meth_lock existence before trying to lock it 2025-05-13 11:38:56 +02:00
rc2
rc4
rc5
ripemd
rsa Fix potential memory leaks in error paths in ossl_rsa_multiprime_derive() 2025-02-25 15:37:18 +01:00
seed
sha Mark OPENSSL_armcap_P .hidden in arm asm 2024-11-22 11:23:07 +01:00
siphash
sm2 sm2_sig_verify(): Do not call BN_CTX_end() without BN_CTX_start() 2024-11-21 11:14:17 +01:00
sm3 Fix test failures on big endian ARMv9 target 2025-04-14 15:47:53 +01:00
sm4 Fix test failures on big endian ARMv9 target 2025-04-14 15:47:53 +01:00
srp Copyright year updates 2024-10-22 13:25:18 +01:00
stack Copyright year updates 2024-04-09 13:43:26 +02:00
store Copyright year updates 2024-09-05 09:35:49 +02:00
thread Fix no-thread-pool build on Windows 2024-09-10 16:37:20 +02:00
ts Fix memory leaks after failure of PKCS7_add_signed_attribute() 2025-05-23 17:37:11 +02:00
txt_db
ui crypto/ui/ui_lib.c: Add OPENSSL_free to avoid memory leaks 2025-04-14 15:20:41 +01:00
whrlpool Copyright year updates 2024-09-05 09:35:49 +02:00
x509 crypto/x509/v3_lib.c: Free tmpext if X509V3_EXT_add() fails to avoid memory leak 2025-05-19 16:18:55 +02:00
LPdir_nyi.c
LPdir_unix.c
LPdir_vms.c
LPdir_win.c
LPdir_win32.c
LPdir_wince.c
README-sparse_array.md
alphacpuid.pl
arm64cpuid.pl
arm_arch.h Copyright year updates 2024-04-09 13:43:26 +02:00
armcap.c Fix cpp comment in windows build 2025-04-01 11:52:48 +02:00
armv4cpuid.pl Mark OPENSSL_armcap_P .hidden in arm asm 2024-11-22 11:23:07 +01:00
asn1_dsa.c
bsearch.c
build.info Move ssl_err.c into libcrypto 2025-03-03 10:41:44 +00:00
c64xpluscpuid.pl
comp_methods.c Move stack of compression methods from libssl to OSSL_LIB_CTX 2024-05-28 08:56:13 +02:00
context.c Copyright year updates 2025-02-11 14:27:50 +00:00
core_algorithm.c
core_fetch.c Take into account no_store when pushing algorithm 2024-12-20 18:26:08 +01:00
core_namemap.c core_namemap.c: Use OPENSSL_STRING instead of defining STRING type 2024-12-31 15:03:31 +01:00
cpt_err.c Use the new hashtable for core_namemap 2024-08-21 15:21:26 +02:00
cpuid.c Copyright year updates 2023-09-28 14:23:29 +01:00
cryptlib.c
ctype.c
cversion.c crypto: fix preprocessor concatenation 2025-03-31 13:58:46 +02:00
defaults.c Fix probing the registry for configuration 2025-03-31 13:58:47 +02:00
der_writer.c
deterministic_nonce.c Copyright year updates 2024-09-05 09:35:49 +02:00
dllmain.c
ebcdic.c
ex_data.c Fix error handling in CRYPTO_get_ex_new_index 2023-09-21 14:43:08 +02:00
getenv.c
ia64cpuid.S
indicator_core.c Add FIPS indicator callback. 2024-07-11 08:29:43 +10:00
info.c Add 'openssl info' item for the Windows install context 2024-10-16 19:30:09 +02:00
init.c Move ssl_err.c into libcrypto 2025-03-03 10:41:44 +00:00
initthread.c Copyright year updates 2024-10-07 15:13:27 +02:00
loongarch64cpuid.pl LoongArch: Fix output file name detection for Perl scripts 2025-02-14 11:35:41 +01:00
loongarch_arch.h
loongarchcap.c
mem.c mem: Don't use posix_memalign() and friends with custom wrapper 2024-10-16 10:14:20 +02:00
mem_clr.c
mem_sec.c Copyright year updates 2024-09-05 09:35:49 +02:00
mips_arch.h
o_dir.c
o_fopen.c Copyright year updates 2024-09-05 09:35:49 +02:00
o_init.c
o_str.c crypto: factorize to hex chars conversion code. 2024-08-07 19:25:10 +02:00
o_time.c
packet.c
param_build.c params: drop INT_MAX checks 2023-12-29 10:21:10 +01:00
param_build_set.c ossl_param_build_set_multi_key_bn(): Do not set NULL BIGNUMs 2023-10-18 18:07:13 +02:00
params.c uefi: move variables 2024-05-30 18:38:12 +02:00
params_dup.c
params_from_text.c Copyright year updates 2024-04-09 13:43:26 +02:00
params_idx.c.in
pariscid.pl
passphrase.c
ppccap.c Copyright year updates 2024-09-05 09:35:49 +02:00
ppccpuid.pl
provider.c
provider_child.c
provider_conf.c crypto/provider_conf.c: Fix possible memory leak 2025-05-07 11:50:54 +02:00
provider_core.c Add FIPS indicator callback. 2024-07-11 08:29:43 +10:00
provider_local.h
provider_predefined.c
punycode.c
quic_vlint.c
rcu_internal.h Copyright year updates 2024-04-09 13:43:26 +02:00
riscv32cpuid.pl Copyright year updates 2024-09-05 09:35:49 +02:00
riscv64cpuid.pl riscv: Add basic vector extension support 2023-10-26 15:55:49 +01:00
riscvcap.c Avoid undefined behaviour with the <ctype.h> functions. 2024-10-10 20:48:12 +02:00
s390x_arch.h s390x: Don't probe crypto cards for ME/CRT offloading during initialization 2024-10-23 15:07:46 +02:00
s390xcap.c s390x: Don't probe crypto cards for ME/CRT offloading during initialization 2024-10-23 15:07:46 +02:00
s390xcpuid.pl Copyright year updates 2024-09-05 09:35:49 +02:00
self_test_core.c Copyright year updates 2024-09-05 09:35:49 +02:00
sleep.c For Unix, refactor OSSL_sleep() to use nanosleep() instead of usleep() 2024-05-22 09:59:32 +02:00
sparccpuid.S
sparcv9cap.c
sparse_array.c Copyright year updates 2024-09-05 09:35:49 +02:00
ssl_err.c Move ssl_err.c into libcrypto 2025-03-03 10:41:44 +00:00
sslerr.h Move ssl_err.c into libcrypto 2025-03-03 10:41:44 +00:00
threads_lib.c
threads_none.c threads_win: fix build error with VS2010 x86 2024-07-01 10:02:02 +02:00
threads_pthread.c Do some more cleanup in the RCU code 2025-03-18 18:52:53 +01:00
threads_win.c Do some more cleanup in the RCU code 2025-03-18 18:52:53 +01:00
time.c
trace.c TRACE: automatically respect disabled categories 2024-10-23 15:16:55 +02:00
uid.c
vms_rms.h
x86_64cpuid.pl
x86cpuid.pl