diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-02-15 16:18:18 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-02-15 16:18:18 +0000 |
commit | 225a9e296b9c0bb57208241d9bcb7be79a9b8b12 (patch) | |
tree | 57ed9a1b492f634947f45804e5be5bb467809044 /fips/fips.c | |
parent | 25c6542944821afc0693ca7027c769cc8775e90d (diff) |
Update pairwise consistency checks to use SHA-256.
Diffstat (limited to 'fips/fips.c')
-rw-r--r-- | fips/fips.c | 3 |
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)) |