/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 | aead.c | 83 u32 mask) in crypto_aead_ctxsize() argument 93 static int crypto_init_aead_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_aead_ops() argument 177 static int crypto_init_nivaead_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_nivaead_ops() argument 254 const char *name, u32 type, u32 mask) in crypto_grab_nivaead() argument 261 mask |= CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_GENIV; in crypto_grab_nivaead() 263 alg = crypto_alg_mod_lookup(name, type, mask); in crypto_grab_nivaead() 267 err = crypto_init_spawn(&spawn->base, alg, spawn->base.inst, mask); in crypto_grab_nivaead() 274 u32 mask) in aead_geniv_alloc() argument 288 algt->mask) in aead_geniv_alloc() 302 mask |= crypto_requires_sync(algt->type, algt->mask); in aead_geniv_alloc() [all …]
|
D | pcrypt.c | 53 cpumask_var_t mask; member 82 if (cpumask_test_cpu(cpu, cpumask->mask)) in pcrypt_do_parallel() 85 if (!cpumask_weight(cpumask->mask)) in pcrypt_do_parallel() 88 cpu_index = cpu % cpumask_weight(cpumask->mask); in pcrypt_do_parallel() 90 cpu = cpumask_first(cpumask->mask); in pcrypt_do_parallel() 92 cpu = cpumask_next(cpu, cpumask->mask); in pcrypt_do_parallel() 348 u32 type, u32 mask) in pcrypt_alloc_aead() argument 353 alg = crypto_get_attr_alg(tb, type, (mask & CRYPTO_ALG_TYPE_MASK)); in pcrypt_alloc_aead() 392 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in pcrypt_alloc() 394 return pcrypt_alloc_aead(tb, algt->type, algt->mask); in pcrypt_alloc() [all …]
|
D | internal.h | 46 u32 mask; member 74 struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask); 75 struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask); 83 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask); 85 struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask); 93 u32 mask); 98 u32 type, u32 mask); 100 const struct crypto_type *frontend, u32 type, u32 mask);
|
D | ablkcipher.c | 345 u32 mask) in crypto_ablkcipher_ctxsize() argument 361 u32 mask) in crypto_init_ablkcipher_ops() argument 443 u32 mask) in crypto_init_givcipher_ops() argument 529 static int crypto_givcipher_default(struct crypto_alg *alg, u32 type, u32 mask) in crypto_givcipher_default() argument 549 mask | CRYPTO_ALG_TYPE_MASK); in crypto_givcipher_default() 562 ptype.data.mask = mask | CRYPTO_ALG_GENIV; in crypto_givcipher_default() 611 struct crypto_alg *crypto_lookup_skcipher(const char *name, u32 type, u32 mask) in crypto_lookup_skcipher() argument 615 alg = crypto_alg_mod_lookup(name, type, mask); in crypto_lookup_skcipher() 630 mask & ~CRYPTO_ALG_TESTED); in crypto_lookup_skcipher() 636 if ((alg->cra_flags ^ type ^ ~mask) & CRYPTO_ALG_TESTED) { in crypto_lookup_skcipher() [all …]
|
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() 498 static int crypto_init_blkcipher_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_blkcipher_ops() argument 505 if ((mask & CRYPTO_ALG_TYPE_MASK) == CRYPTO_ALG_TYPE_MASK) in crypto_init_blkcipher_ops() 564 const char *name, u32 type, u32 mask) in crypto_grab_nivcipher() argument 570 mask = crypto_skcipher_mask(mask)| CRYPTO_ALG_GENIV; in crypto_grab_nivcipher() 572 alg = crypto_alg_mod_lookup(name, type, mask); in crypto_grab_nivcipher() 576 err = crypto_init_spawn(&spawn->base, alg, spawn->base.inst, mask); in crypto_grab_nivcipher() 583 u32 mask) in skcipher_geniv_alloc() argument 609 algt->mask) in skcipher_geniv_alloc() [all …]
|
D | pcompress.c | 36 static int crypto_pcomp_init(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_pcomp_init() argument 94 u32 mask) in crypto_alloc_pcomp() argument 96 return crypto_alloc_tfm(alg_name, &crypto_pcomp_type, type, mask); in crypto_alloc_pcomp()
|
D | crypto_user.c | 326 u32 mask) in crypto_user_skcipher_alg() argument 332 mask = crypto_skcipher_mask(mask); in crypto_user_skcipher_alg() 335 alg = crypto_lookup_skcipher(name, type, mask); in crypto_user_skcipher_alg() 352 u32 mask) in crypto_user_aead_alg() argument 359 mask &= ~(CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_GENIV); in crypto_user_aead_alg() 360 mask |= CRYPTO_ALG_TYPE_MASK; in crypto_user_aead_alg() 363 alg = crypto_lookup_aead(name, type, mask); in crypto_user_aead_alg()
|
D | shash.c | 69 unsigned long mask) in shash_align_buffer_size() argument 72 return len + (mask & ~(__alignof__(u8_aligned) - 1)); in shash_align_buffer_size() 498 static int crypto_init_shash_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_shash_ops() argument 500 switch (mask & CRYPTO_ALG_TYPE_MASK) { in crypto_init_shash_ops() 509 u32 mask) in crypto_shash_ctxsize() argument 511 switch (mask & CRYPTO_ALG_TYPE_MASK) { in crypto_shash_ctxsize() 585 u32 mask) in crypto_alloc_shash() argument 587 return crypto_alloc_tfm(alg_name, &crypto_shash_type, type, mask); in crypto_alloc_shash() 703 struct shash_alg *shash_attr_alg(struct rtattr *rta, u32 type, u32 mask) in shash_attr_alg() argument 707 alg = crypto_attr_alg2(rta, &crypto_shash_type, type, mask); in shash_attr_alg()
|
D | algapi.c | 138 if ((spawn->alg->cra_flags ^ new_type) & spawn->mask) in crypto_remove_spawns() 300 if ((q->cra_flags ^ alg->cra_flags) & larval->mask) in crypto_alg_tested() 596 struct crypto_instance *inst, u32 mask) in crypto_init_spawn() argument 601 spawn->mask = mask; in crypto_init_spawn() 665 u32 mask) in crypto_spawn_tfm() argument 675 if (unlikely((alg->cra_flags ^ type) & mask)) in crypto_spawn_tfm() 678 tfm = __crypto_alloc_tfm(alg, type, mask); in crypto_spawn_tfm() 749 if ((algt->type ^ type) & algt->mask) in crypto_check_attr_type() 776 u32 type, u32 mask) in crypto_attr_alg2() argument 784 return crypto_find_alg(name, frontend, type, mask); in crypto_attr_alg2()
|
D | testmgr.c | 37 int alg_test(const char *driver, const char *alg, u32 type, u32 mask) in alg_test() argument 120 u32 type, u32 mask); 1508 u32 type, u32 mask) in alg_test_aead() argument 1513 tfm = crypto_alloc_aead(driver, type, mask); in alg_test_aead() 1537 const char *driver, u32 type, u32 mask) in alg_test_cipher() argument 1542 tfm = crypto_alloc_cipher(driver, type, mask); in alg_test_cipher() 1566 const char *driver, u32 type, u32 mask) in alg_test_skcipher() argument 1571 tfm = crypto_alloc_ablkcipher(driver, type, mask); in alg_test_skcipher() 1595 u32 type, u32 mask) in alg_test_comp() argument 1600 tfm = crypto_alloc_comp(driver, type, mask); in alg_test_comp() [all …]
|
D | ahash.c | 227 unsigned long mask) in ahash_align_buffer_size() argument 229 return len + (mask & ~(crypto_tfm_ctx_alignment() - 1)); in ahash_align_buffer_size() 560 u32 mask) in crypto_alloc_ahash() argument 562 return crypto_alloc_tfm(alg_name, &crypto_ahash_type, type, mask); in crypto_alloc_ahash() 630 struct hash_alg_common *ahash_attr_alg(struct rtattr *rta, u32 type, u32 mask) in ahash_attr_alg() argument 634 alg = crypto_attr_alg2(rta, &crypto_ahash_type, type, mask); in ahash_attr_alg()
|
D | cryptd.c | 784 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in cryptd_create() 825 u32 type, u32 mask) in cryptd_alloc_ablkcipher() argument 835 mask &= ~CRYPTO_ALG_TYPE_MASK; in cryptd_alloc_ablkcipher() 836 mask |= (CRYPTO_ALG_GENIV | CRYPTO_ALG_TYPE_BLKCIPHER_MASK); in cryptd_alloc_ablkcipher() 837 tfm = crypto_alloc_base(cryptd_alg_name, type, mask); in cryptd_alloc_ablkcipher() 863 u32 type, u32 mask) in cryptd_alloc_ahash() argument 871 tfm = crypto_alloc_ahash(cryptd_alg_name, type, mask); in cryptd_alloc_ahash() 905 u32 type, u32 mask) in cryptd_alloc_aead() argument 913 tfm = crypto_alloc_aead(cryptd_alg_name, type, mask); in cryptd_alloc_aead()
|
D | rng.c | 52 static int crypto_init_rng_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_rng_ops() argument 96 u32 mask) in crypto_rng_ctxsize() argument
|
D | algif_skcipher.c | 518 unsigned int mask; in skcipher_poll() local 521 mask = 0; in skcipher_poll() 524 mask |= POLLIN | POLLRDNORM; in skcipher_poll() 527 mask |= POLLOUT | POLLWRNORM | POLLWRBAND; in skcipher_poll() 529 return mask; in skcipher_poll() 650 static void *skcipher_bind(const char *name, u32 type, u32 mask) in skcipher_bind() argument 659 skcipher = crypto_alloc_ablkcipher(name, type, mask); in skcipher_bind()
|
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 | gcm.c | 712 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_gcm_alloc_common() 719 algt->mask)); in crypto_gcm_alloc_common() 738 algt->mask)); in crypto_gcm_alloc_common() 977 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_rfc4106_alloc() 991 crypto_requires_sync(algt->type, algt->mask)); in crypto_rfc4106_alloc() 1293 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_rfc4543_alloc() 1308 crypto_requires_sync(algt->type, algt->mask)); in crypto_rfc4543_alloc()
|
D | ccm.c | 491 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_ccm_alloc_common() 518 algt->mask)); in crypto_ccm_alloc_common() 760 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_rfc4309_alloc() 774 crypto_requires_sync(algt->type, algt->mask)); in crypto_rfc4309_alloc()
|
D | mcryptd.c | 542 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in mcryptd_create() 575 u32 type, u32 mask) in mcryptd_alloc_ahash() argument 583 tfm = crypto_alloc_ahash(mcryptd_alg_name, type, mask); in mcryptd_alloc_ahash()
|
D | algif_hash.c | 356 static void *hash_bind(const char *name, u32 type, u32 mask) in hash_bind() argument 365 hash = crypto_alloc_ahash(name, type, mask); in hash_bind()
|
D | ctr.c | 349 if ((algt->type ^ CRYPTO_ALG_TYPE_BLKCIPHER) & algt->mask) in crypto_rfc3686_alloc() 365 algt->mask)); in crypto_rfc3686_alloc()
|
D | tcrypt.c | 62 static u32 mask; variable 2130 static int do_alg_test(const char *alg, u32 type, u32 mask) in do_alg_test() argument 2132 return crypto_has_alg(alg, type, mask ?: CRYPTO_ALG_TYPE_MASK) ? in do_alg_test() 2148 err = do_alg_test(alg, type, mask); in tcrypt_mod_init() 2185 module_param(mask, uint, 0);
|
D | chainiv.c | 312 if (!crypto_requires_sync(algt->type, algt->mask)) { in chainiv_alloc()
|
D | authenc.c | 611 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_authenc_alloc() 640 algt->mask)); in crypto_authenc_alloc()
|
D | authencesn.c | 703 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_authenc_esn_alloc() 732 algt->mask)); in crypto_authenc_esn_alloc()
|