Home
last modified time | relevance | path

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

12

/crypto/
Dapi.c56 static struct crypto_alg *__crypto_alg_lookup(const char *name, u32 type, in __crypto_alg_lookup() argument
68 if ((q->cra_flags ^ type) & mask) in __crypto_alg_lookup()
106 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask) in crypto_larval_alloc() argument
115 larval->alg.cra_flags = CRYPTO_ALG_LARVAL | type; in crypto_larval_alloc()
126 static struct crypto_alg *crypto_larval_add(const char *name, u32 type, 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()
232 static struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, in crypto_alg_lookup() argument
238 if (!((type | mask) & CRYPTO_ALG_TESTED)) in crypto_alg_lookup()
242 alg = __crypto_alg_lookup(name, type | test, mask | test); in crypto_alg_lookup()
[all …]
Daf_alg.c24 const struct af_alg_type *type; member
42 const struct af_alg_type *type = ERR_PTR(-ENOENT); in alg_get_type() local
47 if (strcmp(node->type->name, name)) in alg_get_type()
50 if (try_module_get(node->type->owner)) in alg_get_type()
51 type = node->type; in alg_get_type()
56 return type; in alg_get_type()
59 int af_alg_register_type(const struct af_alg_type *type) in af_alg_register_type() argument
66 if (!strcmp(node->type->name, type->name)) in af_alg_register_type()
75 type->ops->owner = THIS_MODULE; in af_alg_register_type()
76 if (type->ops_nokey) in af_alg_register_type()
[all …]
Dalgboss.c29 } type; member
47 u32 type; member
146 param->type.attr.rta_len = sizeof(param->type); in cryptomgr_schedule_probe()
147 param->type.attr.rta_type = CRYPTOA_TYPE; in cryptomgr_schedule_probe()
148 param->type.data.type = larval->alg.cra_flags & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe()
149 param->type.data.mask = larval->mask & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe()
150 param->tb[0] = &param->type.attr; in cryptomgr_schedule_probe()
177 u32 type = param->type; in cryptomgr_test() local
180 err = alg_test(param->driver, param->alg, type, CRYPTO_ALG_TESTED); in cryptomgr_test()
205 param->type = alg->cra_flags; in cryptomgr_schedule_test()
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()
Dinternal.h91 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);
102 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,
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);
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()
390 #define MSGSIZE(type) sizeof(struct type) argument
402 [CRYPTOCFGA_PRIORITY_VAL] = { .type = NLA_U32},
428 int type, err; in crypto_user_rcv_msg() local
430 type = nlh->nlmsg_type; in crypto_user_rcv_msg()
431 if (type > CRYPTO_MSG_MAX) in crypto_user_rcv_msg()
434 type -= CRYPTO_MSG_BASE; in crypto_user_rcv_msg()
435 link = &crypto_dispatch[type]; in crypto_user_rcv_msg()
[all …]
Dakcipher.c30 strscpy(rakcipher.type, "akcipher", sizeof(rakcipher.type)); in crypto_akcipher_report()
89 .type = CRYPTO_ALG_TYPE_AKCIPHER,
95 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()
102 struct crypto_akcipher *crypto_alloc_akcipher(const char *alg_name, u32 type, in crypto_alloc_akcipher() argument
105 return crypto_alloc_tfm(alg_name, &crypto_akcipher_type, type, mask); in crypto_alloc_akcipher()
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()
112 struct crypto_acomp *crypto_alloc_acomp_node(const char *alg_name, u32 type, in crypto_alloc_acomp_node() argument
115 return crypto_alloc_tfm_node(alg_name, &crypto_acomp_type, type, mask, in crypto_alloc_acomp_node()
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()
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()
Daead.c153 strscpy(raead.type, "aead", sizeof(raead.type)); in crypto_aead_report()
201 .type = CRYPTO_ALG_TYPE_AEAD,
207 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()
Dcryptd.c195 u32 *type, u32 *mask) in cryptd_type_and_mask() argument
201 *type = algt->type & CRYPTO_ALG_INTERNAL; in cryptd_type_and_mask()
377 u32 type; 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()
643 u32 type; 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()
830 u32 type; in cryptd_create_aead() local
834 cryptd_type_and_mask(algt, &type, &mask); in cryptd_create_aead()
[all …]
Dahash.c506 strscpy(rhash.type, "ahash", sizeof(rhash.type)); in crypto_ahash_report()
542 .type = CRYPTO_ALG_TYPE_AHASH,
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()
555 struct crypto_ahash *crypto_alloc_ahash(const char *alg_name, u32 type, 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()
Decdh_helper.c38 .type = CRYPTO_KPP_SECRET_TYPE_ECDH, in crypto_ecdh_encode_key()
66 if (secret.type != CRYPTO_KPP_SECRET_TYPE_ECDH) in crypto_ecdh_decode_key()
Dskcipher.c712 strscpy(rblkcipher.type, "skcipher", sizeof(rblkcipher.type)); in crypto_skcipher_report()
740 .type = CRYPTO_ALG_TYPE_SKCIPHER,
746 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
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()
Dshash.c469 strscpy(rhash.type, "shash", sizeof(rhash.type)); in crypto_shash_report()
504 .type = CRYPTO_ALG_TYPE_SHASH,
510 const char *name, u32 type, u32 mask) in crypto_grab_shash() argument
513 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_shash()
517 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type, in crypto_alloc_shash() argument
520 return crypto_alloc_tfm(alg_name, &crypto_shash_type, type, mask); in crypto_alloc_shash()
Dtestmgr.c66 int alg_test(const char *driver, const char *alg, u32 type, u32 mask) in alg_test() argument
146 u32 type, u32 mask);
1141 static int check_hash_result(const char *type, in check_hash_result() argument
1150 type, driver, vec_name, cfg->name); in check_hash_result()
1155 type, driver, vec_name, cfg->name); in check_hash_result()
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()
[all …]
Dessiv.c458 u32 type; in essiv_create() local
474 type = algt->type & algt->mask; in essiv_create()
477 switch (type) { in essiv_create()
577 if (type == CRYPTO_ALG_TYPE_SKCIPHER) { in essiv_create()
619 if (type == CRYPTO_ALG_TYPE_SKCIPHER) in essiv_create()
Dscompress.c48 strscpy(rscomp.type, "scomp", sizeof(rscomp.type)); in crypto_scomp_report()
259 .type = CRYPTO_ALG_TYPE_SCOMPRESS,
Dalgapi.c696 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()
770 struct crypto_tfm *crypto_spawn_tfm(struct crypto_spawn *spawn, u32 type, 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()
863 int crypto_check_attr_type(struct rtattr **tb, u32 type, u32 *mask_ret) in crypto_check_attr_type() argument
871 if ((algt->type ^ type) & algt->mask) in crypto_check_attr_type()
1066 u32 type, u32 mask) in crypto_type_has_alg() argument
1069 struct crypto_alg *alg = crypto_find_alg(name, frontend, type, mask); in crypto_type_has_alg()
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()
259 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()
Dpkcs7.asn1109 type OBJECT IDENTIFIER ({ pkcs7_note_OID }),
114 type OBJECT IDENTIFIER,

12