Fix missing propq in ffc_params_generate
authorShane Lontis <shane.lontis@oracle.com>
Tue, 22 Sep 2020 05:53:58 +0000 (15:53 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Wed, 23 Sep 2020 07:31:40 +0000 (17:31 +1000)
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12944)

crypto/ffc/ffc_params_generate.c

index 1fe8e4a6a533c2619fc6fe3ee64d1e992874a976..a289270347eedd422c2e4bad2fe1c3bead8a6ce2 100644 (file)
@@ -542,7 +542,7 @@ int ffc_params_FIPS186_4_gen_verify(OPENSSL_CTX *libctx, FFC_PARAMS *params,
             *res = FFC_CHECK_INVALID_Q_VALUE;
             goto err;
         }
-        md = EVP_MD_fetch(libctx, def_name, NULL);
+        md = EVP_MD_fetch(libctx, def_name, params->mdprops);
     }
     if (md == NULL)
         goto err;
@@ -835,7 +835,7 @@ int ffc_params_FIPS186_2_gen_verify(OPENSSL_CTX *libctx, FFC_PARAMS *params,
             *res = FFC_CHECK_INVALID_Q_VALUE;
             goto err;
         }
-        md = EVP_MD_fetch(libctx, def_name, NULL);
+        md = EVP_MD_fetch(libctx, def_name, params->mdprops);
     }
     if (md == NULL)
         goto err;