ECDH POST selftest failure inducing support.
[openssl.git] / fips / ecdh / fips_ecdh_selftest.c
index b46ae3b..2b21cea 100644 (file)
@@ -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);