• Home
  • Raw
  • Download

Lines Matching refs:dsa_key

290     UniquePtr<DSA, DSA_Delete> dsa_key(DSA_new());  in GenerateKey()  local
292 if (dsa_key.get() == NULL || pkey.get() == NULL) { in GenerateKey()
302 if (!DSA_generate_parameters_ex(dsa_key.get(), key_size, NULL /* seed */, 0 /* seed_len */, in GenerateKey()
309 SetDsaParamData(&authorizations, TAG_DSA_GENERATOR, dsa_key->g); in GenerateKey()
310 SetDsaParamData(&authorizations, TAG_DSA_P, dsa_key->p); in GenerateKey()
311 SetDsaParamData(&authorizations, TAG_DSA_Q, dsa_key->q); in GenerateKey()
317 dsa_key->g = BN_bin2bn(g_blob.data, g_blob.data_length, NULL); in GenerateKey()
318 dsa_key->p = BN_bin2bn(p_blob.data, p_blob.data_length, NULL); in GenerateKey()
319 dsa_key->q = BN_bin2bn(q_blob.data, q_blob.data_length, NULL); in GenerateKey()
321 if (dsa_key->g == NULL || dsa_key->p == NULL || dsa_key->q == NULL) { in GenerateKey()
326 if (!DSA_generate_key(dsa_key.get())) { in GenerateKey()
331 DsaKey* new_key = new DsaKey(dsa_key.release(), authorizations, logger); in GenerateKey()
357 size_t DsaKey::key_size_bits(DSA* dsa_key) { in key_size_bits() argument
362 return ((BN_num_bytes(dsa_key->p) * 8) + 63) / 64 * 64; in key_size_bits()
372 UniquePtr<DSA, DSA_Delete> dsa_key(EVP_PKEY_get1_DSA(pkey)); in ImportKey() local
373 if (!dsa_key.get()) in ImportKey()
378 *error = GetOrCheckDsaParam(TAG_DSA_GENERATOR, dsa_key->g, &authorizations); in ImportKey()
382 *error = GetOrCheckDsaParam(TAG_DSA_P, dsa_key->p, &authorizations); in ImportKey()
386 *error = GetOrCheckDsaParam(TAG_DSA_Q, dsa_key->q, &authorizations); in ImportKey()
394 uint32_t extracted_key_size_bits = ((BN_num_bytes(dsa_key->p) * 8) + 63) / 64 * 64; in ImportKey()
422 return new DsaKey(dsa_key.release(), authorizations, logger); in ImportKey()