Update pairwise consistency checks to use SHA-256.
[openssl.git] / fips / fips.c
index 51696b5..6a90328 100644 (file)
@@ -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))