summaryrefslogtreecommitdiffstats
path: root/fips/fips.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-02-15 16:18:18 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-02-15 16:18:18 +0000
commit225a9e296b9c0bb57208241d9bcb7be79a9b8b12 (patch)
tree57ed9a1b492f634947f45804e5be5bb467809044 /fips/fips.c
parent25c6542944821afc0693ca7027c769cc8775e90d (diff)
Update pairwise consistency checks to use SHA-256.
Diffstat (limited to 'fips/fips.c')
-rw-r--r--fips/fips.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fips/fips.c b/fips/fips.c
index 51696b5e7c..6a90328d7e 100644
--- a/fips/fips.c
+++ b/fips/fips.c
@@ -454,6 +454,9 @@ int fips_pkey_signature_test(EVP_PKEY *pkey,
if (tbslen == -1)
tbslen = strlen((char *)tbs);
+ if (digest == NULL)
+ digest = EVP_sha256();
+
if (!FIPS_digestinit(&mctx, digest))
goto error;
if (!FIPS_digestupdate(&mctx, tbs, tbslen))