/crypto/ |
D | api.c | 61 u32 mask) in __crypto_alg_lookup() argument 72 if ((q->cra_flags ^ type) & mask) in __crypto_alg_lookup() 77 ((struct crypto_larval *)q)->mask != mask) in __crypto_alg_lookup() 110 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask) in crypto_larval_alloc() argument 118 larval->mask = mask; in crypto_larval_alloc() 131 u32 mask) in crypto_larval_add() argument 136 larval = crypto_larval_alloc(name, type, mask); in crypto_larval_add() 143 alg = __crypto_alg_lookup(name, type, mask); in crypto_larval_add() 196 struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask) in crypto_alg_lookup() argument 201 alg = __crypto_alg_lookup(name, type, mask); in crypto_alg_lookup() [all …]
|
D | pcrypt.c | 54 cpumask_var_t mask; member 83 if (cpumask_test_cpu(cpu, cpumask->mask)) in pcrypt_do_parallel() 86 if (!cpumask_weight(cpumask->mask)) in pcrypt_do_parallel() 89 cpu_index = cpu % cpumask_weight(cpumask->mask); in pcrypt_do_parallel() 91 cpu = cpumask_first(cpumask->mask); in pcrypt_do_parallel() 93 cpu = cpumask_next(cpu, cpumask->mask); in pcrypt_do_parallel() 282 u32 type, u32 mask) in pcrypt_create_aead() argument 354 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in pcrypt_create() 356 return pcrypt_create_aead(tmpl, tb, algt->type, algt->mask); in pcrypt_create() 376 if (!alloc_cpumask_var(&new_mask->mask, GFP_KERNEL)) { in pcrypt_cpumask_change_notify() [all …]
|
D | internal.h | 45 u32 mask; member 73 struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask); 74 struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask); 82 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask); 84 struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask); 92 u32 mask); 97 u32 type, u32 mask); 99 const struct crypto_type *frontend, u32 type, u32 mask); 108 u32 type, u32 mask);
|
D | poly1305_generic.c | 31 static inline u32 and(u32 v, u32 mask) in and() argument 33 return v & mask; in and() 214 u32 mask; in crypto_poly1305_final() local 248 mask = (g4 >> ((sizeof(u32) * 8) - 1)) - 1; in crypto_poly1305_final() 249 g0 &= mask; in crypto_poly1305_final() 250 g1 &= mask; in crypto_poly1305_final() 251 g2 &= mask; in crypto_poly1305_final() 252 g3 &= mask; in crypto_poly1305_final() 253 g4 &= mask; in crypto_poly1305_final() 254 mask = ~mask; in crypto_poly1305_final() [all …]
|
D | aead.c | 192 struct rtattr **tb, u32 type, u32 mask) in aead_geniv_alloc() argument 207 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in aead_geniv_alloc() 221 mask |= crypto_requires_sync(algt->type, algt->mask); in aead_geniv_alloc() 224 err = crypto_grab_aead(spawn, name, type, mask); in aead_geniv_alloc() 332 u32 type, u32 mask) in crypto_grab_aead() argument 335 return crypto_grab_spawn(&spawn->base, name, type, mask); in crypto_grab_aead() 339 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask) in crypto_alloc_aead() argument 341 return crypto_alloc_tfm(alg_name, &crypto_aead_type, type, mask); in crypto_alloc_aead()
|
D | cryptd.c | 194 u32 *mask) in cryptd_check_internal() argument 203 *mask |= algt->mask & CRYPTO_ALG_INTERNAL; in cryptd_check_internal() 380 u32 mask = CRYPTO_ALG_TYPE_MASK; in cryptd_create_blkcipher() local 383 cryptd_check_internal(tb, &type, &mask); in cryptd_create_blkcipher() 385 alg = crypto_get_attr_alg(tb, type, mask); in cryptd_create_blkcipher() 652 u32 mask = 0; in cryptd_create_hash() local 655 cryptd_check_internal(tb, &type, &mask); in cryptd_create_hash() 657 salg = shash_attr_alg(tb[1], type, mask); in cryptd_create_hash() 836 u32 mask = CRYPTO_ALG_ASYNC; in cryptd_create_aead() local 839 cryptd_check_internal(tb, &type, &mask); in cryptd_create_aead() [all …]
|
D | akcipher.c | 101 u32 type, u32 mask) in crypto_grab_akcipher() argument 104 return crypto_grab_spawn(&spawn->base, name, type, mask); in crypto_grab_akcipher() 109 u32 mask) in crypto_alloc_akcipher() argument 111 return crypto_alloc_tfm(alg_name, &crypto_akcipher_type, type, mask); in crypto_alloc_akcipher()
|
D | algapi.c | 146 if ((spawn->alg->cra_flags ^ new_type) & spawn->mask) in crypto_remove_spawns() 307 if ((q->cra_flags ^ alg->cra_flags) & larval->mask) in crypto_alg_tested() 601 struct crypto_instance *inst, u32 mask) in crypto_init_spawn() argument 606 spawn->mask = mask; in crypto_init_spawn() 638 u32 type, u32 mask) in crypto_grab_spawn() argument 643 alg = crypto_find_alg(name, spawn->frontend, type, mask); in crypto_grab_spawn() 647 err = crypto_init_spawn(spawn, alg, spawn->inst, mask); in crypto_grab_spawn() 686 u32 mask) in crypto_spawn_tfm() argument 696 if (unlikely((alg->cra_flags ^ type) & mask)) in crypto_spawn_tfm() 699 tfm = __crypto_alloc_tfm(alg, type, mask); in crypto_spawn_tfm() [all …]
|
D | mcryptd.c | 255 u32 *mask) in mcryptd_check_internal() argument 264 *mask |= algt->mask & CRYPTO_ALG_INTERNAL; in mcryptd_check_internal() 266 if (*type & *mask & CRYPTO_ALG_INTERNAL) in mcryptd_check_internal() 493 u32 mask = 0; in mcryptd_create_hash() local 496 if (!mcryptd_check_internal(tb, &type, &mask)) in mcryptd_create_hash() 499 halg = ahash_attr_alg(tb[1], type, mask); in mcryptd_create_hash() 562 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in mcryptd_create() 595 u32 type, u32 mask) in mcryptd_alloc_ahash() argument 603 tfm = crypto_alloc_ahash(mcryptd_alg_name, type, mask); in mcryptd_alloc_ahash()
|
D | ahash.c | 218 unsigned long mask) in ahash_align_buffer_size() argument 220 return len + (mask & ~(crypto_tfm_ctx_alignment() - 1)); in ahash_align_buffer_size() 556 u32 mask) in crypto_alloc_ahash() argument 558 return crypto_alloc_tfm(alg_name, &crypto_ahash_type, type, mask); in crypto_alloc_ahash() 562 int crypto_has_ahash(const char *alg_name, u32 type, u32 mask) in crypto_has_ahash() argument 564 return crypto_type_has_alg(alg_name, &crypto_ahash_type, type, mask); in crypto_has_ahash() 632 struct hash_alg_common *ahash_attr_alg(struct rtattr *rta, u32 type, u32 mask) in ahash_attr_alg() argument 636 alg = crypto_attr_alg2(rta, &crypto_ahash_type, type, mask); in ahash_attr_alg()
|
D | skcipher.c | 367 const char *name, u32 type, u32 mask) in crypto_grab_skcipher() argument 370 return crypto_grab_spawn(&spawn->base, name, type, mask); in crypto_grab_skcipher() 375 u32 type, u32 mask) in crypto_alloc_skcipher() argument 377 return crypto_alloc_tfm(alg_name, &crypto_skcipher_type2, type, mask); in crypto_alloc_skcipher() 381 int crypto_has_skcipher2(const char *alg_name, u32 type, u32 mask) in crypto_has_skcipher2() argument 384 type, mask); in crypto_has_skcipher2()
|
D | kpp.c | 92 struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask) in crypto_alloc_kpp() argument 94 return crypto_alloc_tfm(alg_name, &crypto_kpp_type, type, mask); in crypto_alloc_kpp()
|
D | testmgr.c | 46 int alg_test(const char *driver, const char *alg, u32 type, u32 mask) in alg_test() argument 132 u32 type, u32 mask); 1507 u32 type, u32 mask) in alg_test_aead() argument 1512 tfm = crypto_alloc_aead(driver, type | CRYPTO_ALG_INTERNAL, mask); in alg_test_aead() 1536 const char *driver, u32 type, u32 mask) in alg_test_cipher() argument 1541 tfm = crypto_alloc_cipher(driver, type | CRYPTO_ALG_INTERNAL, mask); in alg_test_cipher() 1565 const char *driver, u32 type, u32 mask) in alg_test_skcipher() argument 1570 tfm = crypto_alloc_skcipher(driver, type | CRYPTO_ALG_INTERNAL, mask); in alg_test_skcipher() 1594 u32 type, u32 mask) in alg_test_comp() argument 1599 tfm = crypto_alloc_comp(driver, type, mask); in alg_test_comp() [all …]
|
D | algif_rng.c | 117 static void *rng_bind(const char *name, u32 type, u32 mask) in rng_bind() argument 119 return crypto_alloc_rng(name, type, mask); in rng_bind()
|
D | shash.c | 76 unsigned long mask) in shash_align_buffer_size() argument 79 return len + (mask & ~(__alignof__(u8_aligned) - 1)); in shash_align_buffer_size() 450 u32 mask) in crypto_alloc_shash() argument 452 return crypto_alloc_tfm(alg_name, &crypto_shash_type, type, mask); in crypto_alloc_shash() 568 struct shash_alg *shash_attr_alg(struct rtattr *rta, u32 type, u32 mask) in shash_attr_alg() argument 572 alg = crypto_attr_alg2(rta, &crypto_shash_type, type, mask); in shash_attr_alg()
|
D | algboss.c | 184 param->type.data.mask = larval->mask & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe() 188 param->omask = larval->mask; in cryptomgr_schedule_probe()
|
D | algif_aead.c | 704 unsigned int mask; in aead_poll() local 707 mask = 0; in aead_poll() 710 mask |= POLLIN | POLLRDNORM; in aead_poll() 713 mask |= POLLOUT | POLLWRNORM | POLLWRBAND; in aead_poll() 715 return mask; in aead_poll() 836 static void *aead_bind(const char *name, u32 type, u32 mask) in aead_bind() argument 845 aead = crypto_alloc_aead(name, type, mask); in aead_bind()
|
D | rng.c | 118 struct crypto_rng *crypto_alloc_rng(const char *alg_name, u32 type, u32 mask) in crypto_alloc_rng() argument 120 return crypto_alloc_tfm(alg_name, &crypto_rng_type, type, mask); in crypto_alloc_rng()
|
D | algif_skcipher.c | 731 unsigned int mask; in skcipher_poll() local 734 mask = 0; in skcipher_poll() 737 mask |= POLLIN | POLLRDNORM; in skcipher_poll() 740 mask |= POLLOUT | POLLWRNORM | POLLWRBAND; in skcipher_poll() 742 return mask; in skcipher_poll() 863 static void *skcipher_bind(const char *name, u32 type, u32 mask) in skcipher_bind() argument 872 skcipher = crypto_alloc_skcipher(name, type, mask); in skcipher_bind()
|
D | blkcipher.c | 447 u32 mask) in crypto_blkcipher_ctxsize() argument 452 if ((mask & CRYPTO_ALG_TYPE_MASK) == CRYPTO_ALG_TYPE_MASK && in crypto_blkcipher_ctxsize() 494 static int crypto_init_blkcipher_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_blkcipher_ops() argument 501 if ((mask & CRYPTO_ALG_TYPE_MASK) == CRYPTO_ALG_TYPE_MASK) in crypto_init_blkcipher_ops()
|
D | gcm.c | 635 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_gcm_create_common() 642 algt->mask)); in crypto_gcm_create_common() 666 algt->mask)); in crypto_gcm_create_common() 937 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_rfc4106_create() 951 crypto_requires_sync(algt->type, algt->mask)); in crypto_rfc4106_create() 1178 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_rfc4543_create() 1193 crypto_requires_sync(algt->type, algt->mask)); in crypto_rfc4543_create()
|
D | ablkcipher.c | 344 u32 mask) in crypto_ablkcipher_ctxsize() argument 350 u32 mask) in crypto_init_ablkcipher_ops() argument 423 u32 mask) in crypto_init_givcipher_ops() argument
|
D | jitterentropy.c | 139 unsigned int mask = (1<<bits) - 1; in jent_loop_shuffle() local 153 shuffle ^= time & mask; in jent_loop_shuffle()
|
D | authenc.c | 394 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_authenc_create() 399 crypto_requires_sync(algt->type, algt->mask)); in crypto_authenc_create() 425 algt->mask)); in crypto_authenc_create()
|
D | authencesn.c | 420 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_authenc_esn_create() 425 crypto_requires_sync(algt->type, algt->mask)); in crypto_authenc_esn_create() 451 algt->mask)); in crypto_authenc_esn_create()
|