/crypto/ |
D | algapi.c | 241 struct crypto_alg *q; in crypto_alg_finish_registration() local 243 list_for_each_entry(q, &crypto_alg_list, cra_list) { in crypto_alg_finish_registration() 244 if (q == alg) in crypto_alg_finish_registration() 247 if (crypto_is_moribund(q)) in crypto_alg_finish_registration() 250 if (crypto_is_larval(q)) { in crypto_alg_finish_registration() 251 struct crypto_larval *larval = (void *)q; in crypto_alg_finish_registration() 258 if (strcmp(alg->cra_name, q->cra_name) && in crypto_alg_finish_registration() 259 strcmp(alg->cra_driver_name, q->cra_name)) in crypto_alg_finish_registration() 264 if ((q->cra_flags ^ alg->cra_flags) & larval->mask) in crypto_alg_finish_registration() 275 if (strcmp(alg->cra_name, q->cra_name)) in crypto_alg_finish_registration() [all …]
|
D | api.c | 59 struct crypto_alg *q, *alg = NULL; in __crypto_alg_lookup() local 62 list_for_each_entry(q, &crypto_alg_list, cra_list) { in __crypto_alg_lookup() 65 if (crypto_is_moribund(q)) in __crypto_alg_lookup() 68 if ((q->cra_flags ^ type) & mask) in __crypto_alg_lookup() 71 if (crypto_is_larval(q) && in __crypto_alg_lookup() 72 !crypto_is_test_larval((struct crypto_larval *)q) && in __crypto_alg_lookup() 73 ((struct crypto_larval *)q)->mask != mask) in __crypto_alg_lookup() 76 exact = !strcmp(q->cra_driver_name, name); in __crypto_alg_lookup() 77 fuzzy = !strcmp(q->cra_name, name); in __crypto_alg_lookup() 78 if (!exact && !(fuzzy && q->cra_priority > best)) in __crypto_alg_lookup() [all …]
|
D | rsa.c | 21 MPI q; member 68 ret = mpi_powm(m2, c, key->dq, key->q); in _rsa_dec_crt() 77 mpi_mul(m12_or_qh, key->q, m_or_m1_or_h); in _rsa_dec_crt() 176 mpi_free(key->q); in rsa_free_mpi_key() 184 key->q = NULL; in rsa_free_mpi_key() 305 mpi_key->q = mpi_read_raw_data(raw_key.q, raw_key.q_sz); in rsa_set_priv_key() 306 if (!mpi_key->q) in rsa_set_priv_key()
|
D | crypto_user_base.c | 38 struct crypto_alg *q, *alg = NULL; in crypto_alg_match() local 42 list_for_each_entry(q, &crypto_alg_list, cra_list) { in crypto_alg_match() 45 if (crypto_is_larval(q)) in crypto_alg_match() 48 if ((q->cra_flags ^ p->cru_type) & p->cru_mask) in crypto_alg_match() 52 match = !strcmp(q->cra_driver_name, in crypto_alg_match() 55 match = !strcmp(q->cra_name, p->cru_name); in crypto_alg_match() 60 if (unlikely(!crypto_mod_get(q))) in crypto_alg_match() 63 alg = q; in crypto_alg_match()
|
D | vmac.c | 287 u64 p, q, t; in poly_step_func() local 306 q = MUL32(a1, k3); in poly_step_func() 307 q += MUL32(a2, k2); in poly_step_func() 308 q += MUL32(a3, k1); in poly_step_func() 309 q += q; in poly_step_func() 310 p += q; in poly_step_func() 316 q = MUL32(a2, k3); in poly_step_func() 317 q += MUL32(a3, k2); in poly_step_func() 318 q += q; in poly_step_func() 319 p += q; in poly_step_func()
|
D | dh.c | 129 MPI val, q; in dh_is_pubkey_valid() local 136 q = mpi_alloc(mpi_get_nlimbs(ctx->p)); in dh_is_pubkey_valid() 137 if (!q) { in dh_is_pubkey_valid() 146 mpi_rshift(q, ctx->p, 1); in dh_is_pubkey_valid() 148 ret = mpi_powm(val, y, q, ctx->p); in dh_is_pubkey_valid() 149 mpi_free(q); in dh_is_pubkey_valid()
|
D | ecc.c | 568 u64 q[ECC_MAX_DIGITS]; in vli_mmod_special2() local 579 vli_set(q, product + ndigits, ndigits); in vli_mmod_special2() 584 for (i = 1; carry || !vli_is_zero(q, ndigits); i++) { in vli_mmod_special2() 587 vli_umult(qc, q, c2, ndigits); in vli_mmod_special2() 590 vli_set(q, qc + ndigits, ndigits); in vli_mmod_special2() 666 u64 q[ECC_MAX_DIGITS * 2]; in vli_mmod_barrett() local 670 vli_mult(q, product + ndigits, mu, ndigits); in vli_mmod_barrett() 672 vli_add(q + ndigits, q + ndigits, product + ndigits, ndigits); in vli_mmod_barrett() 673 vli_mult(r, mod, q + ndigits, ndigits); in vli_mmod_barrett() 1341 const struct ecc_point *p, const struct ecc_point *q, in ecc_point_add() argument [all …]
|
D | essiv.c | 391 const char *p, *q; in parse_cipher_name() local 400 q = strchr(p, ')'); in parse_cipher_name() 401 if (!q) in parse_cipher_name() 404 len = q - p; in parse_cipher_name()
|
D | rsa_helper.c | 100 key->q = value; in rsa_get_q()
|
D | testmgr.c | 2794 char *q; in test_cipher() local 2857 q = data; in test_cipher() 2858 if (memcmp(q, result, template[i].len)) { in test_cipher() 2861 hexdump(q, template[i].len); in test_cipher()
|
/crypto/async_tx/ |
D | async_raid6_recov.c | 158 struct page *p, *q, *a, *b; in __2data_recov_4() local 170 q = blocks[disks-1]; in __2data_recov_4() 182 srcs[1] = q; in __2data_recov_4() 208 struct page *p, *q, *g, *dp, *dq; in __2data_recov_5() local 233 q = blocks[disks-1]; in __2data_recov_5() 265 srcs[1] = q; in __2data_recov_5() 299 struct page *p, *q, *dp, *dq; in __2data_recov_n() local 311 q = blocks[disks-1]; in __2data_recov_n() 339 blocks[disks-1] = q; in __2data_recov_n() 354 srcs[1] = q; in __2data_recov_n() [all …]
|
D | async_pq.c | 382 void *p, *q, *s; in async_syndrome_val() local 419 q = page_address(q_src) + q_off; in async_syndrome_val() 421 *pqres |= !!memcmp(q, s, len) << SUM_CHECK_Q; in async_syndrome_val()
|
/crypto/asymmetric_keys/ |
D | x509_public_key.c | 166 const char *q; in x509_key_preparse() local 199 q = cert->raw_skid; in x509_key_preparse() 202 q = cert->raw_serial; in x509_key_preparse() 213 p = bin2hex(p, q, srlen); in x509_key_preparse()
|