openssl/crypto
Bernd Edlinger d6510d99ae DH private key size was one bit too large
In the case when no q parameter was given,
the function generate_key in dh_key.c did create
one bit too much, so the priv_key value was exceeding
the DH group size q = (p-1)/2.
When the length is used in this case the limit is also
one bit too high, but for backward compatibility this
limit was left as is, instead we have to silently reduce
the value by one.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27870)
2025-08-13 11:24:13 +02:00
..
aes [RISC-V] Further optimization for AES-128-CBC decryption performance 2025-08-07 14:37:00 -04:00
aria
asn1 x509: Accept 'contentCommitment' as alias 2025-08-11 12:00:38 +02:00
async
bf
bio
bn crypto/bn: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
buffer
camellia
cast
chacha
cmac
cmp crypto/{cmp,crmf}/: clean up unneeded #include directives 2025-08-11 16:33:59 +02:00
cms cms_kemri.c: Fix Coverity issues 2025-08-11 16:44:08 +02:00
comp crypto: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
conf Fix failure checking on rcu_read_lock 2025-08-09 09:22:13 -04:00
crmf crypto/{cmp,crmf}/: clean up unneeded #include directives 2025-08-11 16:33:59 +02:00
ct
des
dh DH private key size was one bit too large 2025-08-13 11:24:13 +02:00
dsa
dso
ec crypto/ec: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
encode_decode Fix missing unlock in decoder_pkey.c 2025-08-12 14:15:50 -04:00
engine
err error: add new repeated parameter error 2025-08-08 10:33:14 +10:00
ess
evp Fix SKEYMGMT enumeration, add tests 2025-08-12 14:30:54 +02:00
ffc
hashtable Remove assert in core_namemap.c 2025-08-12 14:15:50 -04:00
hmac crypto: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
hpke
http
idea
kdf
lhash crypto: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
lms
md2
md4
md5 RISC-V: Add MD5 assembly implementation with rv64gc and Zbb 2025-08-13 18:28:38 +10:00
mdc2
ml_dsa crypto: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
ml_kem
modes crypto: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
objects crypto: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
ocsp
pem crypto: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
perlasm RISC-V: Add Zbb orn and its pseudo instruction opcode to rv64gc in riscv.pm 2025-08-13 18:28:38 +10:00
pkcs7 Fix memory leak on EVP_CIPHER_param_to_asn1 failure 2025-08-11 16:54:46 +02:00
pkcs12
poly1305
property
rand Fix failure checking on thread_local storage assignment in rand_lib 2025-08-09 09:22:13 -04:00
rc2
rc4
rc5
ripemd
rsa crypto: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
seed
sha
siphash
slh_dsa
sm2 crypto: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
sm3
sm4
srp crypto: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
stack crypto: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
store
thread
ts
txt_db crypto: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
ui
whrlpool
x509 Add NULL check 2025-08-12 14:33:18 -04: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
armcap.c
armv4cpuid.pl
array_alloc.c Add array memory allocation routines 2025-08-08 12:22:10 -04:00
asn1_dsa.c
bsearch.c
build.info Add array memory allocation routines 2025-08-08 12:22:10 -04:00
c64xpluscpuid.pl
comp_methods.c
context.c
core_algorithm.c
core_fetch.c
core_namemap.c Remove assert in core_namemap.c 2025-08-12 14:15:50 -04:00
cpt_err.c
cpuid.c
cryptlib.c
ctype.c
cversion.c
defaults.c
der_writer.c
deterministic_nonce.c
dllmain.c
ebcdic.c
ex_data.c crypto: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
getenv.c
ia64cpuid.S
indicator_core.c
info.c
init.c
initthread.c
loongarch64cpuid.pl
loongarch_arch.h
loongarchcap.c
mem.c crypto/mem.c: check for overflow in size calculation in CRYPTO_aligned_alloc 2025-08-08 12:22:10 -04:00
mem_clr.c
mem_sec.c crypto: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
mips_arch.h
o_dir.c
o_fopen.c
o_init.c
o_str.c
o_time.c
packet.c
param_build.c
param_build_set.c
params.c
params_dup.c crypto: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
params_from_text.c
pariscid.pl
passphrase.c
ppccap.c
ppccpuid.pl
provider.c
provider_child.c
provider_conf.c
provider_core.c crypto: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
provider_local.h
provider_predefined.c
punycode.c
quic_vlint.c
rcu_internal.h
riscv32cpuid.pl
riscv64cpuid.pl
riscvcap.c
s390x_arch.h
s390xcap.c
s390xcpuid.pl
self_test_core.c
sleep.c crypto/sleep.c: avoid returning early due to signal 2025-08-09 15:33:08 -04:00
sparccpuid.S
sparcv9cap.c
sparse_array.c crypto: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
ssl_err.c
sslerr.h
threads_common.c crypto: use array memory (re)allocation routines 2025-08-08 12:22:10 -04:00
threads_lib.c
threads_none.c Fix failure checking on rcu_read_lock 2025-08-09 09:22:13 -04:00
threads_pthread.c Fix failure checking on rcu_read_lock 2025-08-09 09:22:13 -04:00
threads_win.c Fix failure checking on rcu_read_lock 2025-08-09 09:22:13 -04:00
time.c
trace.c
uid.c
vms_rms.h
x86_64cpuid.pl
x86cpuid.pl