diff options
Diffstat (limited to 'crypto/ffc')
-rw-r--r-- | crypto/ffc/ffc_params_validate.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crypto/ffc/ffc_params_validate.c b/crypto/ffc/ffc_params_validate.c index 0abbad2801..c1b4cf05d2 100644 --- a/crypto/ffc/ffc_params_validate.c +++ b/crypto/ffc/ffc_params_validate.c @@ -152,8 +152,12 @@ int ossl_ffc_params_full_validate(OSSL_LIB_CTX *libctx, const FFC_PARAMS *params res, NULL); #else if (params->seed != NULL) { - return ossl_ffc_params_FIPS186_4_validate(libctx, params, paramstype, - res, NULL); + if (params->flags & FFC_PARAM_FLAG_VALIDATE_LEGACY) + return ossl_ffc_params_FIPS186_2_validate(libctx, params, paramstype, + res, NULL); + else + return ossl_ffc_params_FIPS186_4_validate(libctx, params, paramstype, + res, NULL); } else { int ret = 0; |