/linux-6.12.1/crypto/asymmetric_keys/ |
D | public_key.c | 69 char alg_name[CRYPTO_MAX_ALG_NAME], bool *sig, in software_key_determine_akcipher() 87 n = snprintf(alg_name, CRYPTO_MAX_ALG_NAME, in software_key_determine_akcipher() 91 n = snprintf(alg_name, CRYPTO_MAX_ALG_NAME, in software_key_determine_akcipher() 139 if (strscpy(alg_name, pkey->pkey_algo, CRYPTO_MAX_ALG_NAME) < 0) in software_key_determine_akcipher() 158 char alg_name[CRYPTO_MAX_ALG_NAME]; in software_key_query() local 165 params->hash_algo, alg_name, in software_key_query() 182 sig = crypto_alloc_sig(alg_name, 0, 0); in software_key_query() 207 tfm = crypto_alloc_akcipher(alg_name, 0, 0); in software_key_query() 285 char alg_name[CRYPTO_MAX_ALG_NAME]; in software_key_eds_op() local 296 params->hash_algo, alg_name, in software_key_eds_op() [all …]
|
/linux-6.12.1/tools/testing/selftests/arm64/fp/ |
D | kernel-test.c | 29 static char *alg_name; variable 132 free(alg_name); in create_socket() 133 alg_name = NULL; in create_socket() 155 alg_name = strdup(c); in create_socket() 165 strncpy((char *)addr.salg_name, alg_name, in create_socket() 307 printf("AF_ALG using %s\n", alg_name); in main()
|
/linux-6.12.1/include/crypto/internal/ |
D | cipher.h | 56 static inline struct crypto_cipher *crypto_alloc_cipher(const char *alg_name, in crypto_alloc_cipher() argument 63 return __crypto_cipher_cast(crypto_alloc_base(alg_name, type, mask)); in crypto_alloc_cipher() 90 static inline int crypto_has_cipher(const char *alg_name, u32 type, u32 mask) in crypto_has_cipher() argument 96 return crypto_has_alg(alg_name, type, mask); in crypto_has_cipher()
|
/linux-6.12.1/include/crypto/ |
D | cryptd.h | 27 struct cryptd_skcipher *cryptd_alloc_skcipher(const char *alg_name, 45 struct cryptd_ahash *cryptd_alloc_ahash(const char *alg_name, 63 struct cryptd_aead *cryptd_alloc_aead(const char *alg_name,
|
D | acompress.h | 85 struct crypto_acomp *crypto_alloc_acomp(const char *alg_name, u32 type, 103 struct crypto_acomp *crypto_alloc_acomp_node(const char *alg_name, u32 type, 162 static inline int crypto_has_acomp(const char *alg_name, u32 type, u32 mask) in crypto_has_acomp() argument 168 return crypto_has_alg(alg_name, type, mask); in crypto_has_acomp()
|
D | hash.h | 267 struct crypto_ahash *crypto_alloc_ahash(const char *alg_name, u32 type, 298 int crypto_has_ahash(const char *alg_name, u32 type, u32 mask); 679 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type, 684 int crypto_has_shash(const char *alg_name, u32 type, u32 mask);
|
D | skcipher.h | 278 struct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name, 281 struct crypto_sync_skcipher *crypto_alloc_sync_skcipher(const char *alg_name, 299 struct crypto_lskcipher *crypto_alloc_lskcipher(const char *alg_name, 351 int crypto_has_skcipher(const char *alg_name, u32 type, u32 mask);
|
D | kpp.h | 110 struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask); 112 int crypto_has_kpp(const char *alg_name, u32 type, u32 mask);
|
D | aead.h | 181 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask); 209 int crypto_has_aead(const char *alg_name, u32 type, u32 mask);
|
/linux-6.12.1/crypto/ |
D | kpp.c | 85 struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask) in crypto_alloc_kpp() argument 87 return crypto_alloc_tfm(alg_name, &crypto_kpp_type, type, mask); in crypto_alloc_kpp() 100 int crypto_has_kpp(const char *alg_name, u32 type, u32 mask) in crypto_has_kpp() argument 102 return crypto_type_has_alg(alg_name, &crypto_kpp_type, type, mask); in crypto_has_kpp()
|
D | internal.h | 142 struct crypto_alg *crypto_find_alg(const char *alg_name, 146 void *crypto_alloc_tfm_node(const char *alg_name, 150 static inline void *crypto_alloc_tfm(const char *alg_name, in crypto_alloc_tfm() argument 153 return crypto_alloc_tfm_node(alg_name, frontend, type, mask, NUMA_NO_NODE); in crypto_alloc_tfm()
|
D | acompress.c | 111 struct crypto_acomp *crypto_alloc_acomp(const char *alg_name, u32 type, in crypto_alloc_acomp() argument 114 return crypto_alloc_tfm(alg_name, &crypto_acomp_type, type, mask); in crypto_alloc_acomp() 118 struct crypto_acomp *crypto_alloc_acomp_node(const char *alg_name, u32 type, in crypto_alloc_acomp_node() argument 121 return crypto_alloc_tfm_node(alg_name, &crypto_acomp_type, type, mask, in crypto_alloc_acomp_node()
|
D | aead.c | 199 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask) in crypto_alloc_aead() argument 201 return crypto_alloc_tfm(alg_name, &crypto_aead_type, type, mask); in crypto_alloc_aead() 205 int crypto_has_aead(const char *alg_name, u32 type, u32 mask) in crypto_has_aead() argument 207 return crypto_type_has_alg(alg_name, &crypto_aead_type, type, mask); in crypto_has_aead()
|
D | api.c | 467 struct crypto_tfm *crypto_alloc_base(const char *alg_name, u32 type, u32 mask) in crypto_alloc_base() argument 475 alg = crypto_alg_mod_lookup(alg_name, type, mask); in crypto_alloc_base() 586 struct crypto_alg *crypto_find_alg(const char *alg_name, in crypto_find_alg() argument 597 return crypto_alg_mod_lookup(alg_name, type, mask); in crypto_find_alg() 624 void *crypto_alloc_tfm_node(const char *alg_name, in crypto_alloc_tfm_node() argument 634 alg = crypto_find_alg(alg_name, frontend, type, mask); in crypto_alloc_tfm_node()
|
D | sig.c | 63 struct crypto_sig *crypto_alloc_sig(const char *alg_name, u32 type, u32 mask) in crypto_alloc_sig() argument 65 return crypto_alloc_tfm(alg_name, &crypto_sig_type, type, mask); in crypto_alloc_sig()
|
D | shash.c | 241 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type, in crypto_alloc_shash() argument 244 return crypto_alloc_tfm(alg_name, &crypto_shash_type, type, mask); in crypto_alloc_shash() 248 int crypto_has_shash(const char *alg_name, u32 type, u32 mask) in crypto_has_shash() argument 250 return crypto_type_has_alg(alg_name, &crypto_shash_type, type, mask); in crypto_has_shash()
|
D | rng.c | 103 struct crypto_rng *crypto_alloc_rng(const char *alg_name, u32 type, u32 mask) in crypto_alloc_rng() argument 105 return crypto_alloc_tfm(alg_name, &crypto_rng_type, type, mask); in crypto_alloc_rng()
|
/linux-6.12.1/include/linux/ |
D | crypto.h | 444 struct crypto_tfm *crypto_alloc_base(const char *alg_name, u32 type, u32 mask); 501 static inline struct crypto_comp *crypto_alloc_comp(const char *alg_name, in crypto_alloc_comp() argument 508 return __crypto_comp_cast(crypto_alloc_base(alg_name, type, mask)); in crypto_alloc_comp() 521 static inline int crypto_has_comp(const char *alg_name, u32 type, u32 mask) in crypto_has_comp() argument 527 return crypto_has_alg(alg_name, type, mask); in crypto_has_comp()
|
/linux-6.12.1/drivers/crypto/starfive/ |
D | jh7110-hash.c | 372 const char *alg_name, in starfive_hash_init_tfm() argument 383 ctx->ahash_fbk = crypto_alloc_ahash(alg_name, 0, in starfive_hash_init_tfm() 409 const char *alg_name) in starfive_hash_long_setkey() argument 418 ahash_tfm = crypto_alloc_ahash(alg_name, 0, 0); in starfive_hash_long_setkey() 459 const char *alg_name; in starfive_hash_setkey() local 473 alg_name = "sha224-starfive"; in starfive_hash_setkey() 477 alg_name = "sm3-starfive"; in starfive_hash_setkey() 479 alg_name = "sha256-starfive"; in starfive_hash_setkey() 482 alg_name = "sha384-starfive"; in starfive_hash_setkey() 485 alg_name = "sha512-starfive"; in starfive_hash_setkey() [all …]
|
/linux-6.12.1/net/xfrm/ |
D | xfrm_ipcomp.c | 260 static struct crypto_comp * __percpu *ipcomp_alloc_tfms(const char *alg_name) in ipcomp_alloc_tfms() argument 273 if (!strcmp(crypto_comp_name(tfm), alg_name)) { in ipcomp_alloc_tfms() 292 struct crypto_comp *tfm = crypto_alloc_comp(alg_name, 0, in ipcomp_alloc_tfms() 352 ipcd->tfms = ipcomp_alloc_tfms(x->calg->alg_name); in ipcomp_init_state() 357 calg_desc = xfrm_calg_get_byname(x->calg->alg_name, 0); in ipcomp_init_state()
|
D | xfrm_user.c | 64 algp->alg_name[sizeof(algp->alg_name) - 1] = '\0'; in verify_one_alg() 83 algp->alg_name[sizeof(algp->alg_name) - 1] = '\0'; in verify_auth_trunc() 101 algp->alg_name[sizeof(algp->alg_name) - 1] = '\0'; in verify_aead() 479 algo = get_byname(ualg->alg_name, 1); in attach_one_algo() 490 strcpy(p->alg_name, algo->name); in attach_one_algo() 506 algo = xfrm_ealg_get_byname(ualg->alg_name, 1); in attach_crypt() 517 strcpy(p->alg_name, algo->name); in attach_crypt() 535 algo = xfrm_aalg_get_byname(ualg->alg_name, 1); in attach_auth() 546 strcpy(p->alg_name, algo->name); in attach_auth() 566 algo = xfrm_aalg_get_byname(ualg->alg_name, 1); in attach_auth_trunc() [all …]
|
/linux-6.12.1/tools/testing/selftests/net/tcp_ao/lib/ |
D | sock.c | 160 strncpy(ao->alg_name, alg, 64); in test_prepare_key_sockaddr() 235 if (!strcmp("cmac(aes128)", a->alg_name)) { in test_cmp_getsockopt_setsockopt() 277 if (!is_cmac_aes && strcmp(b->alg_name, a->alg_name)) { in test_cmp_getsockopt_setsockopt() 278 test_fail("getsockopt(): returned algorithm %s is different than %s", b->alg_name, a->alg_name); in test_cmp_getsockopt_setsockopt() 281 if (is_cmac_aes && strcmp(b->alg_name, "cmac(aes)")) { in test_cmp_getsockopt_setsockopt() 282 test_fail("getsockopt(): returned algorithm %s is different than cmac(aes)", b->alg_name); in test_cmp_getsockopt_setsockopt()
|
/linux-6.12.1/drivers/net/netdevsim/ |
D | ipsec.c | 90 char *alg_name = NULL; in nsim_ipsec_parse_proto_keys() local 106 alg_name = xs->aead->alg_name; in nsim_ipsec_parse_proto_keys() 108 if (strcmp(alg_name, aes_gcm_name)) { in nsim_ipsec_parse_proto_keys()
|
/linux-6.12.1/drivers/md/ |
D | dm-verity-target.c | 823 v->alg_name in verity_status() 897 DMEMIT(",verity_algorithm=%s", v->alg_name); in verity_status() 1052 kfree(v->alg_name); in verity_dtr() 1268 static int verity_setup_hash_alg(struct dm_verity *v, const char *alg_name) in verity_setup_hash_alg() argument 1275 v->alg_name = kstrdup(alg_name, GFP_KERNEL); in verity_setup_hash_alg() 1276 if (!v->alg_name) { in verity_setup_hash_alg() 1290 ahash = crypto_alloc_ahash(alg_name, 0, in verity_setup_hash_alg() 1298 shash = crypto_alloc_shash(alg_name, 0, 0); in verity_setup_hash_alg() 1316 DMINFO("%s using shash \"%s\"", alg_name, driver_name); in verity_setup_hash_alg() 1323 DMINFO("%s using ahash \"%s\"", alg_name, driver_name); in verity_setup_hash_alg()
|
/linux-6.12.1/include/uapi/linux/ |
D | xfrm.h | 104 char alg_name[64]; member 110 char alg_name[64]; member 117 char alg_name[64]; member
|