Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 48) sorted by relevance

12

/crypto/
Dapi.c55 static struct crypto_alg *__crypto_alg_lookup(const char *name, u32 type, in __crypto_alg_lookup() argument
67 if ((q->cra_flags ^ type) & mask) in __crypto_alg_lookup()
105 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask) in crypto_larval_alloc() argument
114 larval->alg.cra_flags = CRYPTO_ALG_LARVAL | type; in crypto_larval_alloc()
125 static struct crypto_alg *crypto_larval_add(const char *name, u32 type, 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()
191 static struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, in crypto_alg_lookup() argument
197 if (!((type | mask) & CRYPTO_ALG_TESTED)) in crypto_alg_lookup()
201 alg = __crypto_alg_lookup(name, type | test, mask | test); in crypto_alg_lookup()
[all …]
Dalgboss.c29 } type; member
54 u32 type; member
175 param->type.attr.rta_len = sizeof(param->type); in cryptomgr_schedule_probe()
176 param->type.attr.rta_type = CRYPTOA_TYPE; in cryptomgr_schedule_probe()
177 param->type.data.type = larval->alg.cra_flags & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe()
178 param->type.data.mask = larval->mask & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe()
179 param->tb[0] = &param->type.attr; in cryptomgr_schedule_probe()
208 u32 type = param->type; in cryptomgr_test() local
215 if (type & CRYPTO_ALG_TESTED) in cryptomgr_test()
218 err = alg_test(param->driver, param->alg, type, CRYPTO_ALG_TESTED); in cryptomgr_test()
[all …]
Daf_alg.c23 const struct af_alg_type *type; member
41 const struct af_alg_type *type = ERR_PTR(-ENOENT); in alg_get_type() local
46 if (strcmp(node->type->name, name)) in alg_get_type()
49 if (try_module_get(node->type->owner)) in alg_get_type()
50 type = node->type; in alg_get_type()
55 return type; in alg_get_type()
58 int af_alg_register_type(const struct af_alg_type *type) in af_alg_register_type() argument
65 if (!strcmp(node->type->name, type->name)) in af_alg_register_type()
74 type->ops->owner = THIS_MODULE; in af_alg_register_type()
75 if (type->ops_nokey) in af_alg_register_type()
[all …]
Dcrypto_user_stat.c37 strscpy(raead.type, "aead", sizeof(raead.type)); in crypto_report_aead()
54 strscpy(rcipher.type, "cipher", sizeof(rcipher.type)); in crypto_report_cipher()
71 strscpy(rcomp.type, "compression", sizeof(rcomp.type)); in crypto_report_comp()
87 strscpy(racomp.type, "acomp", sizeof(racomp.type)); in crypto_report_acomp()
103 strscpy(rakcipher.type, "akcipher", sizeof(rakcipher.type)); in crypto_report_akcipher()
122 strscpy(rkpp.type, "kpp", sizeof(rkpp.type)); in crypto_report_kpp()
138 strscpy(rhash.type, "ahash", sizeof(rhash.type)); in crypto_report_ahash()
153 strscpy(rhash.type, "shash", sizeof(rhash.type)); in crypto_report_shash()
168 strscpy(rrng.type, "rng", sizeof(rrng.type)); in crypto_report_rng()
201 strscpy(rl.type, "larval", sizeof(rl.type)); in crypto_reportstat_one()
Dakcipher.c30 strscpy(rakcipher.type, "akcipher", sizeof(rakcipher.type)); in crypto_akcipher_report()
89 .type = CRYPTO_ALG_TYPE_AKCIPHER,
94 u32 type, u32 mask) in crypto_grab_akcipher() argument
97 return crypto_grab_spawn(&spawn->base, name, type, mask); in crypto_grab_akcipher()
101 struct crypto_akcipher *crypto_alloc_akcipher(const char *alg_name, u32 type, in crypto_alloc_akcipher() argument
104 return crypto_alloc_tfm(alg_name, &crypto_akcipher_type, type, mask); in crypto_alloc_akcipher()
Dcrypto_user_base.c78 strscpy(rcipher.type, "cipher", sizeof(rcipher.type)); in crypto_report_cipher()
94 strscpy(rcomp.type, "compression", sizeof(rcomp.type)); in crypto_report_comp()
121 strscpy(rl.type, "larval", sizeof(rl.type)); in crypto_report_one()
389 #define MSGSIZE(type) sizeof(struct type) argument
401 [CRYPTOCFGA_PRIORITY_VAL] = { .type = NLA_U32},
427 int type, err; in crypto_user_rcv_msg() local
429 type = nlh->nlmsg_type; in crypto_user_rcv_msg()
430 if (type > CRYPTO_MSG_MAX) in crypto_user_rcv_msg()
433 type -= CRYPTO_MSG_BASE; in crypto_user_rcv_msg()
434 link = &crypto_dispatch[type]; in crypto_user_rcv_msg()
[all …]
Dinternal.h59 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 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,
78 u32 type, u32 mask);
80 const struct crypto_type *frontend, u32 type, u32 mask);
87 u32 type, u32 mask);
Dkpp.c30 strscpy(rkpp.type, "kpp", sizeof(rkpp.type)); in crypto_kpp_report()
80 .type = CRYPTO_ALG_TYPE_KPP,
84 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()
Daead.c158 strscpy(raead.type, "aead", sizeof(raead.type)); in crypto_aead_report()
211 .type = CRYPTO_ALG_TYPE_AEAD,
232 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()
Dacompress.c33 strscpy(racomp.type, "acomp", sizeof(racomp.type)); in crypto_acomp_report()
101 .type = CRYPTO_ALG_TYPE_ACOMPRESS,
105 struct crypto_acomp *crypto_alloc_acomp(const char *alg_name, u32 type, in crypto_alloc_acomp() argument
108 return crypto_alloc_tfm(alg_name, &crypto_acomp_type, type, mask); in crypto_alloc_acomp()
Drng.c76 strscpy(rrng.type, "rng", sizeof(rrng.type)); in crypto_rng_report()
106 .type = CRYPTO_ALG_TYPE_RNG,
110 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()
Dcryptd.c194 static inline void cryptd_check_internal(struct rtattr **tb, u32 *type, in cryptd_check_internal() argument
203 *type |= algt->type & CRYPTO_ALG_INTERNAL; in cryptd_check_internal()
404 u32 type; in cryptd_create_skcipher() local
408 type = 0; in cryptd_create_skcipher()
411 cryptd_check_internal(tb, &type, &mask); in cryptd_create_skcipher()
425 err = crypto_grab_skcipher(&ctx->spawn, name, type, mask); in cryptd_create_skcipher()
676 u32 type = 0; in cryptd_create_hash() local
680 cryptd_check_internal(tb, &type, &mask); in cryptd_create_hash()
682 salg = shash_attr_alg(tb[1], type, mask); in cryptd_create_hash()
860 u32 type = 0; in cryptd_create_aead() local
[all …]
Dahash.c519 strscpy(rhash.type, "ahash", sizeof(rhash.type)); in crypto_ahash_report()
554 .type = CRYPTO_ALG_TYPE_AHASH,
559 struct crypto_ahash *crypto_alloc_ahash(const char *alg_name, u32 type, 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()
Dessiv.c471 u32 type; in essiv_create() local
486 type = algt->type & algt->mask; in essiv_create()
488 switch (type) { in essiv_create()
502 crypto_requires_sync(algt->type, in essiv_create()
524 crypto_requires_sync(algt->type, in essiv_create()
589 if (type == CRYPTO_ALG_TYPE_BLKCIPHER) { in essiv_create()
631 if (type == CRYPTO_ALG_TYPE_BLKCIPHER) in essiv_create()
Dshash.c409 strscpy(rhash.type, "shash", sizeof(rhash.type)); in crypto_shash_report()
443 .type = CRYPTO_ALG_TYPE_SHASH,
447 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type, in crypto_alloc_shash() argument
450 return crypto_alloc_tfm(alg_name, &crypto_shash_type, type, mask); in crypto_alloc_shash()
569 struct shash_alg *shash_attr_alg(struct rtattr *rta, u32 type, u32 mask) in shash_attr_alg() argument
573 alg = crypto_attr_alg2(rta, &crypto_shash_type, type, mask); in shash_attr_alg()
Dskcipher.c949 strscpy(rblkcipher.type, "skcipher", sizeof(rblkcipher.type)); in crypto_skcipher_report()
977 .type = CRYPTO_ALG_TYPE_SKCIPHER,
982 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
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()
[all …]
Dalgapi.c643 if ((alg->cra_flags ^ frontend->type) & frontend->maskset) in crypto_init_spawn2()
655 u32 type, u32 mask) in crypto_grab_spawn() argument
660 alg = crypto_find_alg(name, spawn->frontend, type, mask); in crypto_grab_spawn()
702 struct crypto_tfm *crypto_spawn_tfm(struct crypto_spawn *spawn, u32 type, in crypto_spawn_tfm() argument
713 if (unlikely((alg->cra_flags ^ type) & mask)) in crypto_spawn_tfm()
716 tfm = __crypto_alloc_tfm(alg, type, mask); in crypto_spawn_tfm()
779 int crypto_check_attr_type(struct rtattr **tb, u32 type) in crypto_check_attr_type() argument
787 if ((algt->type ^ type) & algt->mask) in crypto_check_attr_type()
814 u32 type, u32 mask) in crypto_attr_alg2() argument
822 return crypto_find_alg(name, frontend, type, mask); in crypto_attr_alg2()
[all …]
Decdh_helper.c38 .type = CRYPTO_KPP_SECRET_TYPE_ECDH, in crypto_ecdh_encode_key()
67 if (secret.type != CRYPTO_KPP_SECRET_TYPE_ECDH) in crypto_ecdh_decode_key()
Dtestmgr.c62 int alg_test(const char *driver, const char *alg, u32 type, u32 mask) in alg_test() argument
128 u32 type, u32 mask);
1051 static int check_hash_result(const char *type, in check_hash_result() argument
1060 type, driver, vec_name, cfg->name); in check_hash_result()
1065 type, driver, vec_name, cfg->name); in check_hash_result()
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()
[all …]
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()
Dscompress.c48 strscpy(rscomp.type, "scomp", sizeof(rscomp.type)); in crypto_scomp_report()
253 .type = CRYPTO_ALG_TYPE_SCOMPRESS,
Ddh_helper.c45 .type = CRYPTO_KPP_SECRET_TYPE_DH, in crypto_dh_encode_key()
77 if (secret.type != CRYPTO_KPP_SECRET_TYPE_DH) in crypto_dh_decode_key()
/crypto/asymmetric_keys/
Drestrict.c71 const struct key_type *type, in restrict_link_by_signature() argument
84 if (type != &key_type_asymmetric) in restrict_link_by_signature()
119 const struct key_type *type, in key_or_keyring_common() argument
131 else if (dest_keyring->type != &key_type_keyring) in key_or_keyring_common()
137 if (type != &key_type_asymmetric) in key_or_keyring_common()
147 if (trusted->type == &key_type_keyring) { in key_or_keyring_common()
153 } else if (trusted->type == &key_type_asymmetric) { in key_or_keyring_common()
231 const struct key_type *type, in restrict_link_by_key_or_keyring() argument
235 return key_or_keyring_common(dest_keyring, type, payload, trusted, in restrict_link_by_key_or_keyring()
258 const struct key_type *type, in restrict_link_by_key_or_keyring_chain() argument
[all …]
DKconfig3 bool "Asymmetric (public-key cryptographic) key type"
6 This option provides support for a key type that holds the data for
20 This option provides support for asymmetric public key type handling.
33 This option provides support for TPM backed private key type handling.
77 tristate "PKCS#7 testing key type"
80 This option provides a type of key that can be loaded up from a
Dsignature.c51 if (key->type != &key_type_asymmetric) in query_asymmetric_key()
145 if (key->type != &key_type_asymmetric) in verify_signature()

12