Searched refs:dsa_params (Results 1 – 1 of 1) sorted by relevance
/system/security/softkeymaster/ |
D | keymaster_openssl.cpp | 226 static int generate_dsa_keypair(EVP_PKEY* pkey, const keymaster_dsa_keygen_params_t* dsa_params) { in generate_dsa_keypair() argument 227 if (dsa_params->key_size < 512) { in generate_dsa_keypair() 234 if (dsa_params->generator_len == 0 || dsa_params->prime_p_len == 0 || in generate_dsa_keypair() 235 dsa_params->prime_q_len == 0 || dsa_params->generator == NULL || in generate_dsa_keypair() 236 dsa_params->prime_p == NULL || dsa_params->prime_q == NULL) { in generate_dsa_keypair() 237 if (DSA_generate_parameters_ex(dsa.get(), dsa_params->key_size, NULL, 0, NULL, NULL, in generate_dsa_keypair() 243 dsa->g = BN_bin2bn(dsa_params->generator, dsa_params->generator_len, NULL); in generate_dsa_keypair() 249 dsa->p = BN_bin2bn(dsa_params->prime_p, dsa_params->prime_p_len, NULL); in generate_dsa_keypair() 255 dsa->q = BN_bin2bn(dsa_params->prime_q, dsa_params->prime_q_len, NULL); in generate_dsa_keypair() 378 const keymaster_dsa_keygen_params_t* dsa_params = in openssl_generate_keypair() local [all …]
|