Add a test for small subgroup attacks on DH/DHE
authorMatt Caswell <matt@openssl.org>
Wed, 20 Jan 2016 11:56:28 +0000 (11:56 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 28 Jan 2016 13:49:56 +0000 (13:49 +0000)
commit75374adf8a6ff69d6718952121875a491ed2cd29
tree71477a8444461047b5f37b0998ebd55a7ae24446
parentc5b831f21d0d29d1e517d139d9d101763f60c9a2
Add a test for small subgroup attacks on DH/DHE

Following on from the previous commit, add a test to ensure that
DH_compute_key correctly fails if passed a bad y such that:

y^q (mod p) != 1

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
crypto/dh/dhtest.c