Searched refs:dsa (Results 1 – 2 of 2) sorted by relevance
/system/security/keystore-engine/ |
D | dsa_meth.cpp | 50 static DSA_SIG* keystore_dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) { in keystore_dsa_do_sign() argument 51 ALOGV("keystore_dsa_do_sign(%p, %d, %p)", dgst, dlen, dsa); in keystore_dsa_do_sign() 53 uint8_t* key_id = reinterpret_cast<uint8_t*>(DSA_get_ex_data(dsa, dsa_key_handle)); in keystore_dsa_do_sign() 68 int num = DSA_size(dsa); in keystore_dsa_do_sign() 96 ALOGV("keystore_dsa_do_sign(%p, %d, %p) => returning %p len %zu", dgst, dlen, dsa, in keystore_dsa_do_sign() 125 Unique_DSA dsa(EVP_PKEY_get1_DSA(pkey)); in dsa_pkey_setup() local 126 if (!DSA_set_ex_data(dsa.get(), dsa_key_handle, reinterpret_cast<void*>(strdup(key_id)))) { in dsa_pkey_setup() 131 DSA_set_method(dsa.get(), &keystore_dsa_meth); in dsa_pkey_setup() 139 dsa->engine = e; in dsa_pkey_setup()
|
/system/security/softkeymaster/ |
D | keymaster_openssl.cpp | 232 Unique_DSA dsa(DSA_new()); in generate_dsa_keypair() local 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() 244 if (dsa->g == NULL) { in generate_dsa_keypair() 249 dsa->p = BN_bin2bn(dsa_params->prime_p, dsa_params->prime_p_len, NULL); in generate_dsa_keypair() 250 if (dsa->p == NULL) { in generate_dsa_keypair() 255 dsa->q = BN_bin2bn(dsa_params->prime_q, dsa_params->prime_q_len, NULL); in generate_dsa_keypair() 256 if (dsa->q == NULL) { in generate_dsa_keypair() 262 if (DSA_generate_key(dsa.get()) != 1) { in generate_dsa_keypair() 267 if (EVP_PKEY_assign_DSA(pkey, dsa.get()) == 0) { in generate_dsa_keypair() [all …]
|