Lines Matching refs:dsa_params
226 static int generate_dsa_keypair(EVP_PKEY* pkey, const keymaster_dsa_keygen_params_t* dsa_params)
228 if (dsa_params->key_size < 512) {
235 if (dsa_params->generator_len == 0 ||
236 dsa_params->prime_p_len == 0 ||
237 dsa_params->prime_q_len == 0 ||
238 dsa_params->generator == NULL||
239 dsa_params->prime_p == NULL ||
240 dsa_params->prime_q == NULL) {
241 if (DSA_generate_parameters_ex(dsa.get(), dsa_params->key_size, NULL, 0, NULL, NULL,
247 dsa->g = BN_bin2bn(dsa_params->generator,
248 dsa_params->generator_len,
255 dsa->p = BN_bin2bn(dsa_params->prime_p,
256 dsa_params->prime_p_len,
263 dsa->q = BN_bin2bn(dsa_params->prime_q,
264 dsa_params->prime_q_len,
394 const keymaster_dsa_keygen_params_t* dsa_params =
396 generate_dsa_keypair(pkey.get(), dsa_params);