dhtest.c: Add test of DH_check() with q = p + 1
authorTomas Mraz <tomas@openssl.org>
Tue, 25 Jul 2023 13:23:43 +0000 (15:23 +0200)
committerTodd Short <todd.short@me.com>
Thu, 27 Jul 2023 13:54:20 +0000 (09:54 -0400)
commit1478ffad3f123550ec1014642d5c880dfbe270ef
tree833cb0b792c4f31d73c2c267a79460d5a31cf5d5
parent6a1eb62c29db6cb5eec707f9338aee00f44e26f5
dhtest.c: Add test of DH_check() with q = p + 1

This must fail with DH_CHECK_INVALID_Q_VALUE and
with DH_CHECK_Q_NOT_PRIME unset.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/21550)

(cherry picked from commit ad5d35572695d7b5748b2bd4fb1afaa189b29e28)
test/dhtest.c