Commit c1f63b5c authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

ECDH POST selftest failure inducing support.

parent cf619405
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -214,6 +214,9 @@ int FIPS_selftest_ecdh(void)
			goto err;
			}

		if (!fips_post_corrupt(FIPS_TEST_ECDH, ecd->curve, NULL))
			ztmp[0] ^= 0x1;

		if (memcmp(ztmp, ecd->z, ecd->zlen))
			{
			fips_post_failed(FIPS_TEST_ECDH, ecd->curve, 0);
+2 −0
Original line number Diff line number Diff line
@@ -1017,6 +1017,8 @@ int main(int argc,char **argv)
        } else if (!strcmp(argv[1], "dsa")) {
	    fail_id = FIPS_TEST_SIGNATURE;
	    fail_key = EVP_PKEY_DSA;	
        } else if (!strcmp(argv[1], "ecdh")) {
	    fail_id = FIPS_TEST_ECDH;
        } else if (!strcmp(argv[1], "ecdsa")) {
	    fail_id = FIPS_TEST_SIGNATURE;
	    fail_key = EVP_PKEY_EC;