Home
last modified time | relevance | path

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

12

/crypto/
A Dapi.c39 u32 type, u32 mask);
70 if ((q->cra_flags ^ type) & mask) in __crypto_alg_lookup()
201 u32 type, u32 mask) in crypto_larval_wait() argument
259 if (!((type | mask) & CRYPTO_ALG_TESTED)) in crypto_alg_lookup()
266 if (((type | mask) ^ fips) & fips) in crypto_alg_lookup()
271 ((type ^ alg->cra_flags) & mask)) { in crypto_alg_lookup()
300 alg = crypto_alg_lookup(name, type, mask); in crypto_larval_lookup()
374 if (type && tfm->exit) in crypto_exit_ops()
590 u32 type, u32 mask) in crypto_find_alg() argument
593 type &= frontend->maskclear; in crypto_find_alg()
[all …]
A Daf_alg.c54 type = node->type; in alg_get_type()
69 if (!strcmp(node->type->name, type->name)) in af_alg_register_type()
81 node->type = type; in af_alg_register_type()
99 if (strcmp(node->type->name, type->name)) in af_alg_unregister_type()
115 if (!type) in alg_do_release()
195 swap(ask->type, type); in alg_bind()
211 const struct af_alg_type *type = ask->type; in alg_setkey() local
289 const struct af_alg_type *type = ask->type; in alg_setkey_by_key_serial() local
369 type = ask->type; in alg_setsockopt()
420 type = ask->type; in af_alg_accept()
[all …]
A Dinternal.h37 unsigned int (*ctxsize)(struct crypto_alg *alg, u32 type, u32 mask);
45 unsigned int type; member
68 int alg_test(const char *driver, const char *alg, u32 type, u32 mask);
113 struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask);
123 struct crypto_tfm *__crypto_alloc_tfmgfp(struct crypto_alg *alg, u32 type,
125 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,
140 u32 type, u32 mask);
143 const struct crypto_type *frontend, u32 type, u32 mask,
147 const struct crypto_type *frontend, u32 type, u32 mask) in crypto_alloc_tfm() argument
149 return crypto_alloc_tfm_node(alg_name, frontend, type, mask, NUMA_NO_NODE); in crypto_alloc_tfm()
[all …]
A Dalgboss.c29 } type; member
47 u32 type; member
145 param->type.attr.rta_len = sizeof(param->type); in cryptomgr_schedule_probe()
146 param->type.attr.rta_type = CRYPTOA_TYPE; in cryptomgr_schedule_probe()
147 param->type.data.type = larval->alg.cra_flags & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe()
148 param->type.data.mask = larval->mask & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe()
149 param->tb[0] = &param->type.attr; in cryptomgr_schedule_probe()
176 u32 type = param->type; in cryptomgr_test() local
179 err = alg_test(param->driver, param->alg, type, CRYPTO_ALG_TESTED); in cryptomgr_test()
204 param->type = alg->cra_flags; in cryptomgr_schedule_test()
A Dkpp.c27 strscpy(rkpp.type, "kpp", sizeof(rkpp.type)); in crypto_kpp_report()
81 .type = CRYPTO_ALG_TYPE_KPP,
86 struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask) in crypto_alloc_kpp() argument
88 return crypto_alloc_tfm(alg_name, &crypto_kpp_type, type, mask); in crypto_alloc_kpp()
94 const char *name, u32 type, u32 mask) in crypto_grab_kpp() argument
97 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_kpp()
101 int crypto_has_kpp(const char *alg_name, u32 type, u32 mask) in crypto_has_kpp() argument
103 return crypto_type_has_alg(alg_name, &crypto_kpp_type, type, mask); in crypto_has_kpp()
A Dsig.c58 strscpy(rsig.type, "sig", sizeof(rsig.type)); in crypto_sig_report()
75 .type = CRYPTO_ALG_TYPE_SIG,
80 struct crypto_sig *crypto_alloc_sig(const char *alg_name, u32 type, u32 mask) in crypto_alloc_sig() argument
82 return crypto_alloc_tfm(alg_name, &crypto_sig_type, type, mask); in crypto_alloc_sig()
174 const char *name, u32 type, u32 mask) in crypto_grab_sig() argument
177 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_sig()
A Dcrypto_user.c77 strscpy(rcipher.type, "cipher", sizeof(rcipher.type)); in crypto_report_cipher()
109 strscpy(rl.type, "larval", sizeof(rl.type)); in crypto_report_one()
380 #define MSGSIZE(type) sizeof(struct type) argument
392 [CRYPTOCFGA_PRIORITY_VAL] = { .type = NLA_U32},
418 int type, err; in crypto_user_rcv_msg() local
420 type = nlh->nlmsg_type; in crypto_user_rcv_msg()
421 if (type > CRYPTO_MSG_MAX) in crypto_user_rcv_msg()
424 type -= CRYPTO_MSG_BASE; in crypto_user_rcv_msg()
425 link = &crypto_dispatch[type]; in crypto_user_rcv_msg()
427 if ((type == (CRYPTO_MSG_GETALG - CRYPTO_MSG_BASE) && in crypto_user_rcv_msg()
[all …]
A Daead.c143 strscpy(raead.type, "aead", sizeof(raead.type)); in crypto_aead_report()
187 .type = CRYPTO_ALG_TYPE_AEAD,
194 const char *name, u32 type, u32 mask) in crypto_grab_aead() argument
197 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_aead()
201 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask) in crypto_alloc_aead() argument
203 return crypto_alloc_tfm(alg_name, &crypto_aead_type, type, mask); in crypto_alloc_aead()
207 int crypto_has_aead(const char *alg_name, u32 type, u32 mask) in crypto_has_aead() argument
209 return crypto_type_has_alg(alg_name, &crypto_aead_type, type, mask); in crypto_has_aead()
A Dakcipher.c43 strscpy(rakcipher.type, "akcipher", sizeof(rakcipher.type)); in crypto_akcipher_report()
98 .type = CRYPTO_ALG_TYPE_AKCIPHER,
105 const char *name, u32 type, u32 mask) in crypto_grab_akcipher() argument
108 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_akcipher()
112 struct crypto_akcipher *crypto_alloc_akcipher(const char *alg_name, u32 type, in crypto_alloc_akcipher() argument
115 return crypto_alloc_tfm(alg_name, &crypto_akcipher_type, type, mask); in crypto_alloc_akcipher()
A Drng.c73 strscpy(rrng.type, "rng", sizeof(rrng.type)); in crypto_rng_report()
99 .type = CRYPTO_ALG_TYPE_RNG,
104 struct crypto_rng *crypto_alloc_rng(const char *alg_name, u32 type, u32 mask) in crypto_alloc_rng() argument
106 return crypto_alloc_tfm(alg_name, &crypto_rng_type, type, mask); in crypto_alloc_rng()
A Dskcipher.c348 strscpy(rblkcipher.type, "skcipher", sizeof(rblkcipher.type)); in crypto_skcipher_report()
372 .type = CRYPTO_ALG_TYPE_SKCIPHER,
379 const char *name, u32 type, u32 mask) in crypto_grab_skcipher() argument
382 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_skcipher()
387 u32 type, u32 mask) in crypto_alloc_skcipher() argument
389 return crypto_alloc_tfm(alg_name, &crypto_skcipher_type, type, mask); in crypto_alloc_skcipher()
394 const char *alg_name, u32 type, u32 mask) in crypto_alloc_sync_skcipher() argument
400 type &= ~(CRYPTO_ALG_ASYNC | CRYPTO_ALG_SKCIPHER_REQSIZE_LARGE); in crypto_alloc_sync_skcipher()
402 tfm = crypto_alloc_tfm(alg_name, &crypto_skcipher_type, type, mask); in crypto_alloc_sync_skcipher()
418 int crypto_has_skcipher(const char *alg_name, u32 type, u32 mask) in crypto_has_skcipher() argument
[all …]
A Dcryptd.c201 u32 *type, u32 *mask) in cryptd_type_and_mask() argument
207 *type = algt->type & CRYPTO_ALG_INTERNAL; in cryptd_type_and_mask()
387 u32 type; in cryptd_create_skcipher() local
391 cryptd_type_and_mask(algt, &type, &mask); in cryptd_create_skcipher()
671 u32 type; in cryptd_create_hash() local
675 cryptd_type_and_mask(algt, &type, &mask); in cryptd_create_hash()
880 u32 type; in cryptd_create_aead() local
884 cryptd_type_and_mask(algt, &type, &mask); in cryptd_create_aead()
956 u32 type, u32 mask) in cryptd_alloc_skcipher() argument
1008 u32 type, u32 mask) in cryptd_alloc_ahash() argument
[all …]
A Dshash.c341 strscpy(rhash.type, "shash", sizeof(rhash.type)); in crypto_shash_report()
372 .type = CRYPTO_ALG_TYPE_SHASH,
379 const char *name, u32 type, u32 mask) in crypto_grab_shash() argument
382 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_shash()
386 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type, in crypto_alloc_shash() argument
389 return crypto_alloc_tfm(alg_name, &crypto_shash_type, type, mask); in crypto_alloc_shash()
393 int crypto_has_shash(const char *alg_name, u32 type, u32 mask) in crypto_has_shash() argument
395 return crypto_type_has_alg(alg_name, &crypto_shash_type, type, mask); in crypto_has_shash()
A 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()
A Dacompress.c58 strscpy(racomp.type, "acomp", sizeof(racomp.type)); in crypto_acomp_report()
147 .type = CRYPTO_ALG_TYPE_ACOMPRESS,
152 struct crypto_acomp *crypto_alloc_acomp(const char *alg_name, u32 type, in crypto_alloc_acomp() argument
155 return crypto_alloc_tfm(alg_name, &crypto_acomp_type, type, mask); in crypto_alloc_acomp()
159 struct crypto_acomp *crypto_alloc_acomp_node(const char *alg_name, u32 type, in crypto_alloc_acomp_node() argument
162 return crypto_alloc_tfm_node(alg_name, &crypto_acomp_type, type, mask, in crypto_alloc_acomp_node()
A Dalgapi.c724 const char *name, u32 type, u32 mask) in crypto_grab_spawn() argument
737 type | CRYPTO_ALG_FIPS_INTERNAL, mask); in crypto_grab_spawn()
799 struct crypto_tfm *crypto_spawn_tfm(struct crypto_spawn *spawn, u32 type, in crypto_spawn_tfm() argument
810 if (unlikely((alg->cra_flags ^ type) & mask)) in crypto_spawn_tfm()
813 tfm = __crypto_alloc_tfm(alg, type, mask); in crypto_spawn_tfm()
892 int crypto_check_attr_type(struct rtattr **tb, u32 type, u32 *mask_ret) in crypto_check_attr_type() argument
900 if ((algt->type ^ type) & algt->mask) in crypto_check_attr_type()
1042 u32 type, u32 mask) in crypto_type_has_alg() argument
1045 struct crypto_alg *alg = crypto_find_alg(name, frontend, type, mask); in crypto_type_has_alg()
A Dlskcipher.c271 strscpy(rblkcipher.type, "lskcipher", sizeof(rblkcipher.type)); in crypto_lskcipher_report()
295 .type = CRYPTO_ALG_TYPE_LSKCIPHER,
330 const char *name, u32 type, u32 mask) in crypto_grab_lskcipher() argument
333 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_lskcipher()
338 u32 type, u32 mask) in crypto_alloc_lskcipher() argument
340 return crypto_alloc_tfm(alg_name, &crypto_lskcipher_type, type, mask); in crypto_alloc_lskcipher()
A Dtestmgr.c149 u32 type, u32 mask);
1906 u32 type, u32 mask, in __alg_test_hash() argument
1996 u32 type, u32 mask) in alg_test_hash() argument
2664 u32 type, u32 mask) in alg_test_aead() argument
3532 u32 type, u32 mask) in alg_test_comp() argument
3554 u32 type, u32 mask) in alg_test_cprng() argument
3647 u32 type, u32 mask) in alg_test_drbg() argument
3830 u32 type, u32 mask) in alg_test_kpp() argument
4123 u32 type, u32 mask) in alg_test_sig() argument
5808 type, mask); in alg_test()
[all …]
A Dessiv.c457 u32 type; in essiv_create() local
473 type = algt->type & algt->mask; in essiv_create()
476 switch (type) { in essiv_create()
576 if (type == CRYPTO_ALG_TYPE_LSKCIPHER) { in essiv_create()
617 if (type == CRYPTO_ALG_TYPE_LSKCIPHER) in essiv_create()
A Ddh_helper.c45 .type = CRYPTO_KPP_SECRET_TYPE_DH, in crypto_dh_encode_key()
75 if (secret.type != CRYPTO_KPP_SECRET_TYPE_DH) in __crypto_dh_decode_key()
A Dahash.c782 strscpy(rhash.type, "ahash", sizeof(rhash.type)); in crypto_ahash_report()
814 .type = CRYPTO_ALG_TYPE_AHASH,
821 const char *name, u32 type, u32 mask) in crypto_grab_ahash() argument
824 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_ahash()
828 struct crypto_ahash *crypto_alloc_ahash(const char *alg_name, u32 type, in crypto_alloc_ahash() argument
831 return crypto_alloc_tfm(alg_name, &crypto_ahash_type, type, mask); in crypto_alloc_ahash()
835 int crypto_has_ahash(const char *alg_name, u32 type, u32 mask) in crypto_has_ahash() argument
837 return crypto_type_has_alg(alg_name, &crypto_ahash_type, type, mask); in crypto_has_ahash()
/crypto/asymmetric_keys/
A Drestrict.c71 const struct key_type *type, in restrict_link_by_signature() argument
84 if (type != &key_type_asymmetric) in restrict_link_by_signature()
131 const struct key_type *type, in restrict_link_by_ca() argument
137 if (type != &key_type_asymmetric) in restrict_link_by_ca()
172 const struct key_type *type, in restrict_link_by_digsig() argument
178 if (type != &key_type_asymmetric) in restrict_link_by_digsig()
207 const struct key_type *type, in key_or_keyring_common() argument
225 if (type != &key_type_asymmetric) in key_or_keyring_common()
235 if (trusted->type == &key_type_keyring) { in key_or_keyring_common()
329 const struct key_type *type, in restrict_link_by_key_or_keyring() argument
[all …]
A DKconfig3 bool "Asymmetric (public-key cryptographic) key type"
6 This option provides support for a key type that holds the data for
21 This option provides support for asymmetric public key type handling.
57 tristate "PKCS#7 testing key type"
60 This option provides a type of key that can be loaded up from a
A Dsignature.c51 if (key->type != &key_type_asymmetric) in query_asymmetric_key()
82 if (key->type != &key_type_asymmetric) in verify_signature()
A Dpkcs7.asn1116 type OBJECT IDENTIFIER ({ pkcs7_note_OID }),
121 type OBJECT IDENTIFIER,

Completed in 49 milliseconds

12