Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 25 of 37) sorted by relevance

12

/crypto/
Dapi.c56 u32 mask) in __crypto_alg_lookup() argument
67 if ((q->cra_flags ^ type) & mask) in __crypto_alg_lookup()
72 ((struct crypto_larval *)q)->mask != mask) in __crypto_alg_lookup()
105 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask) in crypto_larval_alloc() argument
113 larval->mask = mask; in crypto_larval_alloc()
126 u32 mask) in crypto_larval_add() argument
131 larval = crypto_larval_alloc(name, type, mask); in crypto_larval_add()
138 alg = __crypto_alg_lookup(name, type, mask); in crypto_larval_add()
194 u32 mask) in crypto_alg_lookup() argument
199 if (!((type | mask) & CRYPTO_ALG_TESTED)) in crypto_alg_lookup()
[all …]
Dpoly1305_generic.c32 static inline u32 and(u32 v, u32 mask) in and() argument
34 return v & mask; in and()
220 u32 mask; in poly1305_core_emit() local
243 mask = (g4 >> ((sizeof(u32) * 8) - 1)) - 1; in poly1305_core_emit()
244 g0 &= mask; in poly1305_core_emit()
245 g1 &= mask; in poly1305_core_emit()
246 g2 &= mask; in poly1305_core_emit()
247 g3 &= mask; in poly1305_core_emit()
248 g4 &= mask; in poly1305_core_emit()
249 mask = ~mask; in poly1305_core_emit()
[all …]
Dinternal.h31 u32 mask; member
59 struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask);
64 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask);
72 u32 mask);
77 u32 type, u32 mask);
79 const struct crypto_type *frontend, u32 type, u32 mask);
86 u32 type, u32 mask);
Dcryptd.c194 u32 *mask) in cryptd_check_internal() argument
203 *mask |= algt->mask & CRYPTO_ALG_INTERNAL; in cryptd_check_internal()
404 u32 mask; in cryptd_create_skcipher() local
408 mask = CRYPTO_ALG_ASYNC; in cryptd_create_skcipher()
410 cryptd_check_internal(tb, &type, &mask); in cryptd_create_skcipher()
424 err = crypto_grab_skcipher(&ctx->spawn, name, type, mask); in cryptd_create_skcipher()
676 u32 mask = 0; in cryptd_create_hash() local
679 cryptd_check_internal(tb, &type, &mask); in cryptd_create_hash()
681 salg = shash_attr_alg(tb[1], type, mask); in cryptd_create_hash()
860 u32 mask = CRYPTO_ALG_ASYNC; in cryptd_create_aead() local
[all …]
Dakcipher.c94 u32 type, u32 mask) in crypto_grab_akcipher() argument
97 return crypto_grab_spawn(&spawn->base, name, type, mask); in crypto_grab_akcipher()
102 u32 mask) in crypto_alloc_akcipher() argument
104 return crypto_alloc_tfm(alg_name, &crypto_akcipher_type, type, mask); in crypto_alloc_akcipher()
Daead.c232 struct rtattr **tb, u32 type, u32 mask) in aead_geniv_alloc() argument
247 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in aead_geniv_alloc()
261 mask |= crypto_requires_sync(algt->type, algt->mask); in aead_geniv_alloc()
264 err = crypto_grab_aead(spawn, name, type, mask); in aead_geniv_alloc()
372 u32 type, u32 mask) in crypto_grab_aead() argument
375 return crypto_grab_spawn(&spawn->base, name, type, mask); in crypto_grab_aead()
379 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask) in crypto_alloc_aead() argument
381 return crypto_alloc_tfm(alg_name, &crypto_aead_type, type, mask); in crypto_alloc_aead()
Dalgapi.c141 if ((spawn->alg->cra_flags ^ new_type) & spawn->mask) in crypto_remove_spawns()
321 if ((q->cra_flags ^ alg->cra_flags) & larval->mask) in crypto_alg_tested()
634 struct crypto_instance *inst, u32 mask) in crypto_init_spawn() argument
642 spawn->mask = mask; in crypto_init_spawn()
674 u32 type, u32 mask) in crypto_grab_spawn() argument
679 alg = crypto_find_alg(name, spawn->frontend, type, mask); in crypto_grab_spawn()
683 err = crypto_init_spawn(spawn, alg, spawn->inst, mask); in crypto_grab_spawn()
714 u32 mask) in crypto_spawn_tfm() argument
724 if (unlikely((alg->cra_flags ^ type) & mask)) in crypto_spawn_tfm()
727 tfm = __crypto_alloc_tfm(alg, type, mask); in crypto_spawn_tfm()
[all …]
Dctr.c270 u32 mask; in crypto_rfc3686_create() local
278 if ((algt->type ^ CRYPTO_ALG_TYPE_SKCIPHER) & algt->mask) in crypto_rfc3686_create()
289 mask = crypto_requires_sync(algt->type, algt->mask) | in crypto_rfc3686_create()
290 crypto_requires_off(algt->type, algt->mask, in crypto_rfc3686_create()
296 err = crypto_grab_skcipher(spawn, cipher_name, 0, mask); in crypto_rfc3686_create()
Dahash.c225 unsigned long mask) in ahash_align_buffer_size() argument
227 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()
566 int crypto_has_ahash(const char *alg_name, u32 type, u32 mask) in crypto_has_ahash() argument
568 return crypto_type_has_alg(alg_name, &crypto_ahash_type, type, mask); in crypto_has_ahash()
665 struct hash_alg_common *ahash_attr_alg(struct rtattr *rta, u32 type, u32 mask) in ahash_attr_alg() argument
669 alg = crypto_attr_alg2(rta, &crypto_ahash_type, type, mask); in ahash_attr_alg()
Dskcipher.c982 const char *name, u32 type, u32 mask) in crypto_grab_skcipher() argument
985 return crypto_grab_spawn(&spawn->base, name, type, mask); in crypto_grab_skcipher()
990 u32 type, u32 mask) in crypto_alloc_skcipher() argument
992 return crypto_alloc_tfm(alg_name, &crypto_skcipher_type2, type, mask); in crypto_alloc_skcipher()
997 const char *alg_name, u32 type, u32 mask) in crypto_alloc_sync_skcipher() argument
1002 mask |= CRYPTO_ALG_ASYNC; in crypto_alloc_sync_skcipher()
1004 tfm = crypto_alloc_tfm(alg_name, &crypto_skcipher_type2, type, mask); in crypto_alloc_sync_skcipher()
1020 int crypto_has_skcipher2(const char *alg_name, u32 type, u32 mask) in crypto_has_skcipher2() argument
1023 type, mask); in crypto_has_skcipher2()
1177 u32 mask; in skcipher_alloc_instance_simple() local
[all …]
Dxts.c344 u32 mask; in create() local
351 if ((algt->type ^ CRYPTO_ALG_TYPE_SKCIPHER) & algt->mask) in create()
366 mask = crypto_requires_off(algt->type, algt->mask, in create()
370 err = crypto_grab_skcipher(&ctx->spawn, cipher_name, 0, mask); in create()
377 err = crypto_grab_skcipher(&ctx->spawn, ctx->name, 0, mask); in create()
Dkpp.c84 struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask) in crypto_alloc_kpp() argument
86 return crypto_alloc_tfm(alg_name, &crypto_kpp_type, type, mask); in crypto_alloc_kpp()
Dalgif_rng.c116 static void *rng_bind(const char *name, u32 type, u32 mask) in rng_bind() argument
118 return crypto_alloc_rng(name, type, mask); in rng_bind()
Dalgboss.c178 param->type.data.mask = larval->mask & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe()
182 param->omask = larval->mask; in cryptomgr_schedule_probe()
Dtestmgr.c62 int alg_test(const char *driver, const char *alg, u32 type, u32 mask) in alg_test() argument
128 u32 type, u32 mask);
1675 static int alloc_shash(const char *driver, u32 type, u32 mask, in alloc_shash() argument
1682 tfm = crypto_alloc_shash(driver, type, mask); in alloc_shash()
1710 u32 type, u32 mask, in __alg_test_hash() argument
1728 atfm = crypto_alloc_ahash(driver, type, mask); in __alg_test_hash()
1747 err = alloc_shash(driver, type, mask, &stfm, &desc); in __alg_test_hash()
1795 u32 type, u32 mask) in alg_test_hash() argument
1825 err = __alg_test_hash(template, nr_unkeyed, driver, type, mask, in alg_test_hash()
1831 err = __alg_test_hash(template, nr_keyed, driver, type, mask, in alg_test_hash()
[all …]
Dacompress.c106 u32 mask) in crypto_alloc_acomp() argument
108 return crypto_alloc_tfm(alg_name, &crypto_acomp_type, type, mask); in crypto_alloc_acomp()
Drng.c110 struct crypto_rng *crypto_alloc_rng(const char *alg_name, u32 type, u32 mask) in crypto_alloc_rng() argument
112 return crypto_alloc_tfm(alg_name, &crypto_rng_type, type, mask); in crypto_alloc_rng()
Dlrw.c312 if ((algt->type ^ CRYPTO_ALG_TYPE_SKCIPHER) & algt->mask) in create()
328 algt->mask)); in create()
337 algt->mask)); in create()
Dpcrypt.c238 u32 type, u32 mask) in pcrypt_create_aead() argument
324 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in pcrypt_create()
326 return pcrypt_create_aead(tmpl, tb, algt->type, algt->mask); in pcrypt_create()
Dshash.c460 u32 mask) in crypto_alloc_shash() argument
462 return crypto_alloc_tfm(alg_name, &crypto_shash_type, type, mask); in crypto_alloc_shash()
581 struct shash_alg *shash_attr_alg(struct rtattr *rta, u32 type, u32 mask) in shash_attr_alg() argument
585 alg = crypto_attr_alg2(rta, &crypto_shash_type, type, mask); in shash_attr_alg()
Dblkcipher.c440 u32 mask) in crypto_blkcipher_ctxsize() argument
445 if ((mask & CRYPTO_ALG_TYPE_MASK) == CRYPTO_ALG_TYPE_MASK && in crypto_blkcipher_ctxsize()
487 static int crypto_init_blkcipher_ops(struct crypto_tfm *tfm, u32 type, u32 mask) in crypto_init_blkcipher_ops() argument
494 if ((mask & CRYPTO_ALG_TYPE_MASK) == CRYPTO_ALG_TYPE_MASK) in crypto_init_blkcipher_ops()
Djitterentropy.c131 unsigned int mask = (1<<bits) - 1; in jent_loop_shuffle() local
145 shuffle ^= time & mask; in jent_loop_shuffle()
Dgcm.c599 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_gcm_create_common()
606 algt->mask)); in crypto_gcm_create_common()
631 algt->mask)); in crypto_gcm_create_common()
880 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_rfc4106_create()
894 crypto_requires_sync(algt->type, algt->mask)); in crypto_rfc4106_create()
1117 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_rfc4543_create()
1132 crypto_requires_sync(algt->type, algt->mask)); in crypto_rfc4543_create()
Dauthenc.c398 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_authenc_create()
403 crypto_requires_sync(algt->type, algt->mask)); in crypto_authenc_create()
429 algt->mask)); in crypto_authenc_create()
Dauthencesn.c416 if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask) in crypto_authenc_esn_create()
421 crypto_requires_sync(algt->type, algt->mask)); in crypto_authenc_esn_create()
447 algt->mask)); in crypto_authenc_esn_create()

12