Latest update.
This commit is contained in:
@@ -63,11 +63,8 @@ int ffc_params_fromdata(FFC_PARAMS *ffc, const OSSL_PARAM params[])
|
||||
ffc->pcounter = i;
|
||||
}
|
||||
prm = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_FFC_COFACTOR);
|
||||
if (prm != NULL) {
|
||||
if (!OSSL_PARAM_get_BN(prm, &j))
|
||||
goto err;
|
||||
j = NULL;
|
||||
}
|
||||
if (prm != NULL && !OSSL_PARAM_get_BN(prm, &j))
|
||||
goto err;
|
||||
prm = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_FFC_H);
|
||||
if (prm != NULL) {
|
||||
if (!OSSL_PARAM_get_int(prm, &i))
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "internal/ffc.h"
|
||||
#include "internal/param_build_set.h"
|
||||
|
||||
#ifndef FIPS_MODE
|
||||
#ifndef FIPS_MODULE
|
||||
# include <openssl/asn1.h> /* ffc_params_print */
|
||||
#endif
|
||||
|
||||
@@ -231,7 +231,7 @@ int ffc_params_todata(const FFC_PARAMS *ffc, OSSL_PARAM_BLD *bld,
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifndef FIPS_MODE
|
||||
#ifndef FIPS_MODULE
|
||||
int ffc_params_print(BIO *bp, const FFC_PARAMS *ffc, int indent)
|
||||
{
|
||||
if (!ASN1_bn_print(bp, "prime P:", ffc->p, NULL, indent))
|
||||
@@ -270,4 +270,4 @@ int ffc_params_print(BIO *bp, const FFC_PARAMS *ffc, int indent)
|
||||
err:
|
||||
return 0;
|
||||
}
|
||||
#endif /* FIPS_MODE */
|
||||
#endif /* FIPS_MODULE */
|
||||
@@ -772,7 +772,7 @@ int ffc_params_FIPS186_2_gen_verify(OPENSSL_CTX *libctx, FFC_PARAMS *params,
|
||||
EVP_MD *evpmd_fetch = NULL;
|
||||
|
||||
*res = 0;
|
||||
#ifdef FIPS_MODE
|
||||
#ifdef FIPS_MODULE
|
||||
/*
|
||||
* FIPS 186-4 states that validation can only be done for this pair.
|
||||
* (Even though the original spec allowed L = 512 + 64*j (j = 0.. 8))
|
||||
|
||||
Reference in New Issue
Block a user