Home
last modified time | relevance | path

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

12

/crypto/
Dapi.c57 u32 mask) in __crypto_alg_lookup() argument
68 if ((q->cra_flags ^ type) & mask) in __crypto_alg_lookup()
73 ((struct crypto_larval *)q)->mask != mask) in __crypto_alg_lookup()
106 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask) in crypto_larval_alloc() argument
114 larval->mask = mask; in crypto_larval_alloc()
127 u32 mask) in crypto_larval_add() argument
132 larval = crypto_larval_alloc(name, type, mask); in crypto_larval_add()
139 alg = __crypto_alg_lookup(name, type, mask); in crypto_larval_add()
233 u32 mask) in crypto_alg_lookup() argument
238 if (!((type | mask) & CRYPTO_ALG_TESTED)) in crypto_alg_lookup()
[all …]
Dinternal.h30 u32 mask; member
91 struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask);
93 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask);
103 u32 mask);
115 u32 type, u32 mask);
118 const struct crypto_type *frontend, u32 type, u32 mask,
122 const struct crypto_type *frontend, u32 type, u32 mask) in crypto_alloc_tfm() argument
124 return crypto_alloc_tfm_node(alg_name, frontend, type, mask, NUMA_NO_NODE); in crypto_alloc_tfm()
132 u32 type, u32 mask);
Dcryptd.c195 u32 *type, u32 *mask) in cryptd_type_and_mask() argument
202 *mask = algt->mask & CRYPTO_ALG_INTERNAL; in cryptd_type_and_mask()
205 *mask |= CRYPTO_ALG_ASYNC; in cryptd_type_and_mask()
207 *mask |= crypto_algt_inherited_mask(algt); in cryptd_type_and_mask()
378 u32 mask; in cryptd_create_skcipher() local
381 cryptd_type_and_mask(algt, &type, &mask); in cryptd_create_skcipher()
391 crypto_attr_alg_name(tb[1]), type, mask); in cryptd_create_skcipher()
644 u32 mask; in cryptd_create_hash() local
647 cryptd_type_and_mask(algt, &type, &mask); in cryptd_create_hash()
657 crypto_attr_alg_name(tb[1]), type, mask); in cryptd_create_hash()
[all …]
Dakcipher.c95 const char *name, u32 type, u32 mask) in crypto_grab_akcipher() argument
98 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_akcipher()
103 u32 mask) in crypto_alloc_akcipher() argument
105 return crypto_alloc_tfm(alg_name, &crypto_akcipher_type, type, mask); in crypto_alloc_akcipher()
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()
113 u32 mask, int node) in crypto_alloc_acomp_node() argument
115 return crypto_alloc_tfm_node(alg_name, &crypto_acomp_type, type, mask, in crypto_alloc_acomp_node()
Dgeniv.c49 u32 mask; in aead_geniv_alloc() local
52 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_AEAD, &mask); in aead_geniv_alloc()
63 crypto_attr_alg_name(tb[1]), 0, mask); in aead_geniv_alloc()
Dahash.c194 unsigned long mask) in ahash_align_buffer_size() argument
196 return len + (mask & ~(crypto_tfm_ctx_alignment() - 1)); in ahash_align_buffer_size()
548 const char *name, u32 type, u32 mask) in crypto_grab_ahash() argument
551 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_ahash()
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()
Dskcipher.c746 const char *name, u32 type, u32 mask) in crypto_grab_skcipher() argument
749 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_skcipher()
754 u32 type, u32 mask) in crypto_alloc_skcipher() argument
756 return crypto_alloc_tfm(alg_name, &crypto_skcipher_type, type, mask); in crypto_alloc_skcipher()
761 const char *alg_name, u32 type, u32 mask) in crypto_alloc_sync_skcipher() argument
766 mask |= CRYPTO_ALG_ASYNC; in crypto_alloc_sync_skcipher()
768 tfm = crypto_alloc_tfm(alg_name, &crypto_skcipher_type, type, mask); in crypto_alloc_sync_skcipher()
784 int crypto_has_skcipher(const char *alg_name, u32 type, u32 mask) in crypto_has_skcipher() argument
786 return crypto_type_has_alg(alg_name, &crypto_skcipher_type, type, mask); in crypto_has_skcipher()
932 u32 mask; in skcipher_alloc_instance_simple() local
[all …]
Daead.c207 const char *name, u32 type, u32 mask) in crypto_grab_aead() argument
210 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_aead()
214 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask) in crypto_alloc_aead() argument
216 return crypto_alloc_tfm(alg_name, &crypto_aead_type, type, mask); in crypto_alloc_aead()
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()
Dalgboss.c149 param->type.data.mask = larval->mask & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe()
153 param->omask = larval->mask; in cryptomgr_schedule_probe()
Dccm.c451 u32 mask; in crypto_ccm_create_common() local
458 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_AEAD, &mask); in crypto_ccm_create_common()
468 mac_name, 0, mask | CRYPTO_ALG_ASYNC); in crypto_ccm_create_common()
479 ctr_name, 0, mask); in crypto_ccm_create_common()
709 u32 mask; in crypto_rfc4309_create() local
715 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_AEAD, &mask); in crypto_rfc4309_create()
725 crypto_attr_alg_name(tb[1]), 0, mask); in crypto_rfc4309_create()
868 u32 mask; in cbcmac_create() local
871 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SHASH, &mask); in cbcmac_create()
881 crypto_attr_alg_name(tb[1]), 0, mask); in cbcmac_create()
Dalgapi.c151 if ((spawn->alg->cra_flags ^ new_type) & spawn->mask) in crypto_remove_spawns()
246 if ((q->cra_flags ^ alg->cra_flags) & larval->mask) in crypto_alg_finish_registration()
696 const char *name, u32 type, u32 mask) in crypto_grab_spawn() argument
708 alg = crypto_find_alg(name, spawn->frontend, type, mask); in crypto_grab_spawn()
716 spawn->mask = mask; in crypto_grab_spawn()
771 u32 mask) in crypto_spawn_tfm() argument
781 if (unlikely((alg->cra_flags ^ type) & mask)) in crypto_spawn_tfm()
784 tfm = __crypto_alloc_tfm(alg, type, mask); in crypto_spawn_tfm()
871 if ((algt->type ^ type) & algt->mask) in crypto_check_attr_type()
1066 u32 type, u32 mask) in crypto_type_has_alg() argument
[all …]
Dlrw.c306 u32 mask; in lrw_create() local
309 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SKCIPHER, &mask); in lrw_create()
324 cipher_name, 0, mask); in lrw_create()
333 ecb_name, 0, mask); in lrw_create()
Dessiv.c459 u32 mask; in essiv_create() local
474 type = algt->type & algt->mask; in essiv_create()
475 mask = crypto_algt_inherited_mask(algt); in essiv_create()
489 inner_cipher_name, 0, mask); in essiv_create()
508 inner_cipher_name, 0, mask); in essiv_create()
534 CRYPTO_ALG_TYPE_MASK | mask); in essiv_create()
Dhmac.c171 u32 mask; in hmac_create() local
176 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SHASH, &mask); in hmac_create()
186 crypto_attr_alg_name(tb[1]), 0, mask); in hmac_create()
Dhctr2.c410 u32 mask; in hctr2_create_common() local
420 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SKCIPHER, &mask); in hctr2_create_common()
432 xctr_name, 0, mask); in hctr2_create_common()
451 blockcipher_name, 0, mask); in hctr2_create_common()
464 polyval_name, 0, mask); in hctr2_create_common()
Dtestmgr.c66 int alg_test(const char *driver, const char *alg, u32 type, u32 mask) in alg_test() argument
146 u32 type, u32 mask);
1758 static int alloc_shash(const char *driver, u32 type, u32 mask, in alloc_shash() argument
1765 tfm = crypto_alloc_shash(driver, type, mask); in alloc_shash()
1793 u32 type, u32 mask, in __alg_test_hash() argument
1811 atfm = crypto_alloc_ahash(driver, type, mask); in __alg_test_hash()
1831 err = alloc_shash(driver, type, mask, &stfm, &desc); in __alg_test_hash()
1878 u32 type, u32 mask) in alg_test_hash() argument
1908 err = __alg_test_hash(template, nr_unkeyed, driver, type, mask, in alg_test_hash()
1914 err = __alg_test_hash(template, nr_keyed, driver, type, mask, in alg_test_hash()
[all …]
Dgcm.c581 u32 mask; in crypto_gcm_create_common() local
588 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_AEAD, &mask); in crypto_gcm_create_common()
598 ghash_name, 0, mask); in crypto_gcm_create_common()
609 ctr_name, 0, mask); in crypto_gcm_create_common()
830 u32 mask; in crypto_rfc4106_create() local
836 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_AEAD, &mask); in crypto_rfc4106_create()
846 crypto_attr_alg_name(tb[1]), 0, mask); in crypto_rfc4106_create()
1045 u32 mask; in crypto_rfc4543_create() local
1051 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_AEAD, &mask); in crypto_rfc4543_create()
1061 crypto_attr_alg_name(tb[1]), 0, mask); in crypto_rfc4543_create()
Dxcbc.c195 u32 mask; in xcbc_create() local
198 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SHASH, &mask); in xcbc_create()
208 crypto_attr_alg_name(tb[1]), 0, mask); in xcbc_create()
Dadiantum.c494 u32 mask; in adiantum_create() local
503 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SKCIPHER, &mask); in adiantum_create()
515 crypto_attr_alg_name(tb[1]), 0, mask); in adiantum_create()
523 crypto_attr_alg_name(tb[2]), 0, mask); in adiantum_create()
534 nhpoly1305_name, 0, mask); in adiantum_create()
Dcmac.c229 u32 mask; in cmac_create() local
232 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SHASH, &mask); in cmac_create()
242 crypto_attr_alg_name(tb[1]), 0, mask); in cmac_create()
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()
Dxts.c345 u32 mask; in xts_create() local
348 err = crypto_check_attr_type(tb, CRYPTO_ALG_TYPE_SKCIPHER, &mask); in xts_create()
363 cipher_name, 0, mask); in xts_create()
372 ctx->name, 0, mask); in xts_create()
Dpcrypt.c242 u32 mask = crypto_algt_inherited_mask(algt); in pcrypt_create_aead() local
261 crypto_attr_alg_name(tb[1]), 0, mask); in pcrypt_create_aead()
303 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in pcrypt_create()

12