diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-10-12 13:17:19 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-10-12 13:17:19 +0000 |
commit | c1f63b5cb3a2a330a6fbc173d09f3101f193fc9c (patch) | |
tree | 597d044a751a294ad2e8777aababa0621fd90d93 /fips/ecdh/fips_ecdh_selftest.c | |
parent | cf61940534836ebd8d8a13bae0dd2cbd273a3d49 (diff) |
ECDH POST selftest failure inducing support.
Diffstat (limited to 'fips/ecdh/fips_ecdh_selftest.c')
-rw-r--r-- | fips/ecdh/fips_ecdh_selftest.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fips/ecdh/fips_ecdh_selftest.c b/fips/ecdh/fips_ecdh_selftest.c index b46ae3b8e3..2b21ceaf48 100644 --- a/fips/ecdh/fips_ecdh_selftest.c +++ b/fips/ecdh/fips_ecdh_selftest.c @@ -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); |