Add tests that exercise public key checks for ECDH
authorSimo Sorce <simo@redhat.com>
Mon, 13 May 2019 19:24:56 +0000 (15:24 -0400)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 2 Jul 2019 14:28:48 +0000 (16:28 +0200)
commitba24450dce47682583a3a207e72d4493619ceaf3
tree414b6f1a13f224c3ee2aab18622554ce95112606
parent98bc919114f2272a8b2537467213de4a0fb776e4
Add tests that exercise public key checks for ECDH

When performing ECDH the peer provided public key needs to be checked
for validity. FIPS requires basic tests be performed to insure the
provided points are in fact on the selected curve. Those checks already
exists in the ecc_point_set() function.
Add an explicit test that checks the boundaries so that any regression
in checks will be caught.

Signed-off-by: Simo Sorce <simo@redhat.com>
testsuite/ecdh-test.c