openssl/crypto/dh
Matt Caswell 878e2c5b13 Prevent small subgroup attacks on DH/DHE
Historically OpenSSL only ever generated DH parameters based on "safe"
primes. More recently (in version 1.0.2) support was provided for
generating X9.42 style parameter files such as those required for RFC
5114 support. The primes used in such files may not be "safe". Where an
application is using DH configured with parameters based on primes that
are not "safe" then an attacker could use this fact to find a peer's
private DH exponent. This attack requires that the attacker complete
multiple handshakes in which the peer uses the same DH exponent.

A simple mitigation is to ensure that y^q (mod p) == 1

CVE-2016-0701 (fix part 1 of 2)

Issue reported by Antonio Sanso.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
2016-01-28 13:49:56 +00:00
..
dh.h Prevent small subgroup attacks on DH/DHE 2016-01-28 13:49:56 +00:00
dh192.pem
dh512.pem
dh1024.pem
dh2048.pem
dh4096.pem
dh_ameth.c Code style: space after 'if' 2015-04-16 13:50:01 -04:00
dh_asn1.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
dh_check.c Prevent small subgroup attacks on DH/DHE 2016-01-28 13:49:56 +00:00
dh_depr.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
dh_err.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
dh_gen.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
dh_kdf.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
dh_key.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
dh_lib.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
dh_pmeth.c Code style: space after 'if' 2015-04-16 13:50:01 -04:00
dh_prn.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
dh_rfc5114.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
dhtest.c Properly check return type of DH_compute_key() 2015-10-07 20:36:46 +02:00
example
generate
Makefile Fix the update target and remove duplicate file updates 2015-05-23 06:25:12 +02:00
p192.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
p512.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
p1024.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00