70 #include <openssl/fips.h>
73 static int dh_builtin_genparams(
DH *ret,
int prime_len,
int generator,
BN_GENCB *
cb);
89 return FIPS_dh_generate_parameters_ex(ret, prime_len,
92 return dh_builtin_genparams(ret, prime_len, generator, cb);
120 static int dh_builtin_genparams(
DH *ret,
int prime_len,
int generator,
BN_GENCB *
cb)
127 if (ctx == NULL)
goto err;
131 if (t1 == NULL || t2 == NULL)
goto err;
134 if(!ret->
p && ((ret->
p =
BN_new()) == NULL))
goto err;
135 if(!ret->
g && ((ret->
g =
BN_new()) == NULL))
goto err;
149 else if (generator == DH_GENERATOR_3)