Home
last modified time | relevance | path

Searched refs:dsa_params (Results 1 – 1 of 1) sorted by relevance

/system/security/softkeymaster/
Dkeymaster_openssl.cpp220 static int generate_dsa_keypair(EVP_PKEY* pkey, const keymaster_dsa_keygen_params_t* dsa_params) { in generate_dsa_keypair() argument
221 if (dsa_params->key_size < 512) { in generate_dsa_keypair()
228 if (dsa_params->generator_len == 0 || dsa_params->prime_p_len == 0 || in generate_dsa_keypair()
229 dsa_params->prime_q_len == 0 || dsa_params->generator == NULL || in generate_dsa_keypair()
230 dsa_params->prime_p == NULL || dsa_params->prime_q == NULL) { in generate_dsa_keypair()
231 if (DSA_generate_parameters_ex(dsa.get(), dsa_params->key_size, NULL, 0, NULL, NULL, in generate_dsa_keypair()
237 dsa->g = BN_bin2bn(dsa_params->generator, dsa_params->generator_len, NULL); in generate_dsa_keypair()
243 dsa->p = BN_bin2bn(dsa_params->prime_p, dsa_params->prime_p_len, NULL); in generate_dsa_keypair()
249 dsa->q = BN_bin2bn(dsa_params->prime_q, dsa_params->prime_q_len, NULL); in generate_dsa_keypair()
372 const keymaster_dsa_keygen_params_t* dsa_params = in openssl_generate_keypair() local
[all …]