openssl/include/internal
Tomas Mraz ddb13b283b Use as small dh key size as possible to support the security
Longer private key sizes unnecessarily raise the cycles needed to
compute the shared secret without any increase of the real security.

We use minimum key sizes as defined in RFC7919.

For arbitrary parameters we cannot know whether they are safe
primes (we could test but that would be too inefficient) we have
to keep generating large keys.

However we now set a small dh->length when we are generating safe prime
parameters because we know it is safe to use small keys with them.

That means users need to regenerate the parameters if they
want to take the performance advantage of small private key.

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18480)
2022-07-18 08:06:17 +01:00
..
__DECC_INCLUDE_EPILOGUE.H
__DECC_INCLUDE_PROLOGUE.H
asn1.h
bio_tfo.h Add TFO support to socket BIO and s_client/s_server 2022-03-10 10:42:43 -05:00
bio.h Update copyright year 2022-05-03 13:34:51 +01:00
common.h Update copyright year 2022-05-03 13:34:51 +01:00
comp.h
conf.h
constant_time.h
core.h Avoid code duplication for locale initialization 2022-05-13 08:30:48 +02:00
cryptlib.h Add deprecation macro for 3.1 and deprecate OPENSSL_LH_stats 2022-06-22 09:36:14 +02:00
dane.h
deprecated.h
der.h der_writer: Use uint32_t instead of long. 2022-06-27 10:58:40 +02:00
dso.h
dsoerr.h
e_os.h Add fallback in case of locale initialization failure 2022-05-13 08:30:48 +02:00
endian.h
err.h
event_queue.h ssl: implement an event queue 2022-07-06 10:33:11 +10:00
ffc.h Use as small dh key size as possible to support the security 2022-07-18 08:06:17 +01:00
ktls.h Update copyright year 2022-05-03 13:34:51 +01:00
namemap.h Drop ossl_namemap_add_name_n() and simplify ossl_namemap_add_names() 2022-05-21 21:49:54 +02:00
nelem.h
numbers.h
o_dir.h
packet.h QUIC wire format support 2022-05-27 08:00:52 +02:00
param_build_set.h Update copyright year 2022-05-03 13:34:51 +01:00
passphrase.h Fix pvk encoder to properly query for the passphrase 2021-12-06 16:38:03 +01:00
priority_queue.h Add additional include 2022-07-06 10:33:11 +10:00
property.h Make it possible to remove methods by the provider that provides them 2022-05-05 15:05:55 +02:00
propertyerr.h
provider.h Drop ossl_provider_clear_all_operation_bits() and all uses of it 2022-05-05 15:05:54 +02:00
quic_vlint.h QUIC wire format support 2022-05-27 08:00:52 +02:00
refcount.h
safe_math.h Update copyright year 2022-05-03 13:34:51 +01:00
sha3.h
sizes.h
sm3.h
sockets.h Add config option OPENSSL_NO_UNIX_SOCK 2022-07-08 14:08:45 +10:00
sslconf.h
symhacks.h
thread_once.h
time.h ssl: add a zero time macro 2022-07-06 10:33:11 +10:00
tlsgroups.h Enable brainpool curves for TLS1.3 2021-11-26 06:45:19 +01:00
tsan_assist.h Update copyright year 2022-05-03 13:34:51 +01:00
unicode.h