projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ECDH POST selftest failure inducing support.
[openssl.git]
/
fips
/
ecdh
/
fips_ecdh_selftest.c
diff --git
a/fips/ecdh/fips_ecdh_selftest.c
b/fips/ecdh/fips_ecdh_selftest.c
index b46ae3b8e3fd2c2d6449b7165edf8c3ef0a4fb05..2b21ceaf4815e973f7f830b917f4f4dd6f0c38fb 100644
(file)
--- 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);