Home
last modified time | relevance | path

Searched refs:alg_name (Results 1 – 25 of 64) sorted by relevance

123

/linux-6.15/crypto/asymmetric_keys/
H A Dpublic_key.c91 n = snprintf(alg_name, CRYPTO_MAX_ALG_NAME, in software_key_determine_akcipher()
97 n = snprintf(alg_name, CRYPTO_MAX_ALG_NAME, in software_key_determine_akcipher()
168 char alg_name[CRYPTO_MAX_ALG_NAME]; in software_key_query() local
175 params->hash_algo, alg_name, in software_key_query()
192 sig = crypto_alloc_sig(alg_name, 0, 0); in software_key_query()
265 char alg_name[CRYPTO_MAX_ALG_NAME]; in software_key_eds_op() local
275 params->hash_algo, alg_name, in software_key_eds_op()
292 sig = crypto_alloc_sig(alg_name, 0, 0); in software_key_eds_op()
365 char alg_name[CRYPTO_MAX_ALG_NAME]; in public_key_verify_signature() local
393 sig->hash_algo, alg_name, in public_key_verify_signature()
[all …]
/linux-6.15/tools/testing/selftests/arm64/fp/
H A Dkernel-test.c29 static char *alg_name; variable
130 free(alg_name); in create_socket()
131 alg_name = NULL; in create_socket()
153 alg_name = strdup(c); in create_socket()
163 strncpy((char *)addr.salg_name, alg_name, in create_socket()
309 printf("AF_ALG using %s\n", alg_name); in main()
/linux-6.15/include/crypto/internal/
H A Dcipher.h56 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.15/include/crypto/
H A Dcryptd.h27 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,
H A Dskcipher.h279 struct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name,
282 struct crypto_sync_skcipher *crypto_alloc_sync_skcipher(const char *alg_name,
300 struct crypto_lskcipher *crypto_alloc_lskcipher(const char *alg_name,
358 int crypto_has_skcipher(const char *alg_name, u32 type, u32 mask);
H A Dacompress.h165 struct crypto_acomp *crypto_alloc_acomp(const char *alg_name, u32 type,
183 struct crypto_acomp *crypto_alloc_acomp_node(const char *alg_name, u32 type,
242 static inline int crypto_has_acomp(const char *alg_name, u32 type, u32 mask) in crypto_has_acomp() argument
248 return crypto_has_alg(alg_name, type, mask); in crypto_has_acomp()
H A Dhash.h274 struct crypto_ahash *crypto_alloc_ahash(const char *alg_name, u32 type,
305 int crypto_has_ahash(const char *alg_name, u32 type, u32 mask);
715 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type,
720 int crypto_has_shash(const char *alg_name, u32 type, u32 mask);
H A Dkpp.h110 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);
H A Daead.h181 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.15/crypto/
H A Dkpp.c85 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()
H A Dinternal.h139 struct crypto_alg *crypto_find_alg(const char *alg_name,
143 void *crypto_alloc_tfm_node(const char *alg_name,
147 static inline void *crypto_alloc_tfm(const char *alg_name, in crypto_alloc_tfm() argument
150 return crypto_alloc_tfm_node(alg_name, frontend, type, mask, NUMA_NO_NODE); in crypto_alloc_tfm()
H A Daead.c200 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask) in crypto_alloc_aead() argument
202 return crypto_alloc_tfm(alg_name, &crypto_aead_type, type, mask); in crypto_alloc_aead()
206 int crypto_has_aead(const char *alg_name, u32 type, u32 mask) in crypto_has_aead() argument
208 return crypto_type_has_alg(alg_name, &crypto_aead_type, type, mask); in crypto_has_aead()
H A Dapi.c460 struct crypto_tfm *crypto_alloc_base(const char *alg_name, u32 type, u32 mask) in crypto_alloc_base() argument
468 alg = crypto_alg_mod_lookup(alg_name, type, mask); in crypto_alloc_base()
579 struct crypto_alg *crypto_find_alg(const char *alg_name, in crypto_find_alg() argument
590 return crypto_alg_mod_lookup(alg_name, type, mask); in crypto_find_alg()
617 void *crypto_alloc_tfm_node(const char *alg_name, in crypto_alloc_tfm_node() argument
627 alg = crypto_find_alg(alg_name, frontend, type, mask); in crypto_alloc_tfm_node()
H A Dshash.c241 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()
H A Dsig.c79 struct crypto_sig *crypto_alloc_sig(const char *alg_name, u32 type, u32 mask) in crypto_alloc_sig() argument
81 return crypto_alloc_tfm(alg_name, &crypto_sig_type, type, mask); in crypto_alloc_sig()
H A Drng.c103 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()
H A Dacompress.c141 struct crypto_acomp *crypto_alloc_acomp(const char *alg_name, u32 type, in crypto_alloc_acomp() argument
144 return crypto_alloc_tfm(alg_name, &crypto_acomp_type, type, mask); in crypto_alloc_acomp()
148 struct crypto_acomp *crypto_alloc_acomp_node(const char *alg_name, u32 type, in crypto_alloc_acomp_node() argument
151 return crypto_alloc_tfm_node(alg_name, &crypto_acomp_type, type, mask, in crypto_alloc_acomp_node()
H A Dskcipher.c634 struct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name, in crypto_alloc_skcipher() argument
637 return crypto_alloc_tfm(alg_name, &crypto_skcipher_type, type, mask); in crypto_alloc_skcipher()
642 const char *alg_name, u32 type, u32 mask) in crypto_alloc_sync_skcipher() argument
650 tfm = crypto_alloc_tfm(alg_name, &crypto_skcipher_type, type, mask); in crypto_alloc_sync_skcipher()
666 int crypto_has_skcipher(const char *alg_name, u32 type, u32 mask) in crypto_has_skcipher() argument
668 return crypto_type_has_alg(alg_name, &crypto_skcipher_type, type, mask); in crypto_has_skcipher()
/linux-6.15/drivers/crypto/starfive/
H A Djh7110-hash.c372 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.15/drivers/net/netdevsim/
H A Dipsec.c94 char *alg_name = NULL; in nsim_ipsec_parse_proto_keys() local
110 alg_name = xs->aead->alg_name; in nsim_ipsec_parse_proto_keys()
112 if (strcmp(alg_name, aes_gcm_name)) { in nsim_ipsec_parse_proto_keys()
/linux-6.15/tools/testing/selftests/net/tcp_ao/lib/
H A Dsock.c231 strncpy(ao->alg_name, alg, 64); in test_prepare_key_sockaddr()
306 if (!strcmp("cmac(aes128)", a->alg_name)) { in test_cmp_getsockopt_setsockopt()
348 if (!is_cmac_aes && strcmp(b->alg_name, a->alg_name)) { in test_cmp_getsockopt_setsockopt()
349 test_fail("getsockopt(): returned algorithm %s is different than %s", b->alg_name, a->alg_name); in test_cmp_getsockopt_setsockopt()
352 if (is_cmac_aes && strcmp(b->alg_name, "cmac(aes)")) { in test_cmp_getsockopt_setsockopt()
353 test_fail("getsockopt(): returned algorithm %s is different than cmac(aes)", b->alg_name); in test_cmp_getsockopt_setsockopt()
/linux-6.15/drivers/crypto/inside-secure/eip93/
H A Deip93-common.c714 const char *alg_name; in eip93_hmac_setkey() local
719 alg_name = "sha256-eip93"; in eip93_hmac_setkey()
722 alg_name = "sha224-eip93"; in eip93_hmac_setkey()
725 alg_name = "sha1-eip93"; in eip93_hmac_setkey()
728 alg_name = "md5-eip93"; in eip93_hmac_setkey()
734 ahash_tfm = crypto_alloc_ahash(alg_name, 0, CRYPTO_ALG_ASYNC); in eip93_hmac_setkey()
/linux-6.15/drivers/md/
H A Ddm-verity-target.c870 v->alg_name in verity_status()
944 DMEMIT(",verity_algorithm=%s", v->alg_name); in verity_status()
1099 kfree(v->alg_name); in verity_dtr()
1315 static int verity_setup_hash_alg(struct dm_verity *v, const char *alg_name) in verity_setup_hash_alg() argument
1322 v->alg_name = kstrdup(alg_name, GFP_KERNEL); in verity_setup_hash_alg()
1323 if (!v->alg_name) { in verity_setup_hash_alg()
1337 ahash = crypto_alloc_ahash(alg_name, 0, in verity_setup_hash_alg()
1345 shash = crypto_alloc_shash(alg_name, 0, 0); in verity_setup_hash_alg()
1363 DMINFO("%s using shash \"%s\"", alg_name, driver_name); in verity_setup_hash_alg()
1370 DMINFO("%s using ahash \"%s\"", alg_name, driver_name); in verity_setup_hash_alg()
/linux-6.15/net/xfrm/
H A Dxfrm_user.c64 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()
564 strcpy(p->alg_name, algo->name); in attach_one_algo()
591 strcpy(p->alg_name, algo->name); in attach_crypt()
620 strcpy(p->alg_name, algo->name); in attach_auth()
1176 strscpy_pad(algo->alg_name, auth->alg_name, sizeof(algo->alg_name)); in copy_to_user_auth()
1189 strscpy_pad(ap->alg_name, auth->alg_name, sizeof(ap->alg_name)); in copy_to_user_auth()
1210 strscpy_pad(ap->alg_name, aead->alg_name, sizeof(ap->alg_name)); in copy_to_user_aead()
1232 strscpy_pad(ap->alg_name, ealg->alg_name, sizeof(ap->alg_name)); in copy_to_user_ealg()
[all …]
/linux-6.15/include/uapi/linux/
H A Dxfrm.h104 char alg_name[64]; member
110 char alg_name[64]; member
117 char alg_name[64]; member

123