Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/crypto/asymmetric_keys/
Dpublic_key.c70 char alg_name[CRYPTO_MAX_ALG_NAME]) in software_key_determine_akcipher()
83 n = snprintf(alg_name, CRYPTO_MAX_ALG_NAME, in software_key_determine_akcipher()
87 n = snprintf(alg_name, CRYPTO_MAX_ALG_NAME, in software_key_determine_akcipher()
137 if (strscpy(alg_name, pkey->pkey_algo, CRYPTO_MAX_ALG_NAME) < 0) in software_key_determine_akcipher()
156 char alg_name[CRYPTO_MAX_ALG_NAME]; in software_key_query() local
161 params->hash_algo, alg_name); in software_key_query()
165 tfm = crypto_alloc_akcipher(alg_name, 0, 0); in software_key_query()
219 char alg_name[CRYPTO_MAX_ALG_NAME]; in software_key_eds_op() local
226 params->hash_algo, alg_name); in software_key_eds_op()
230 tfm = crypto_alloc_akcipher(alg_name, 0, 0); in software_key_eds_op()
[all …]
Dasym_tpm.c366 char alg_name[CRYPTO_MAX_ALG_NAME]) in determine_akcipher()
370 strcpy(alg_name, "pkcs1pad(rsa)"); in determine_akcipher()
374 if (snprintf(alg_name, CRYPTO_MAX_ALG_NAME, "pkcs1pad(rsa,%s)", in determine_akcipher()
382 strcpy(alg_name, "rsa"); in determine_akcipher()
397 char alg_name[CRYPTO_MAX_ALG_NAME]; in tpm_key_query() local
404 ret = determine_akcipher(params->encoding, params->hash_algo, alg_name); in tpm_key_query()
408 tfm = crypto_alloc_akcipher(alg_name, 0, 0); in tpm_key_query()
447 char alg_name[CRYPTO_MAX_ALG_NAME]; in tpm_key_encrypt() local
458 ret = determine_akcipher(params->encoding, params->hash_algo, alg_name); in tpm_key_encrypt()
462 tfm = crypto_alloc_akcipher(alg_name, 0, 0); in tpm_key_encrypt()
[all …]
/kernel/linux/linux-5.10/include/crypto/
Dcryptd.h26 struct cryptd_skcipher *cryptd_alloc_skcipher(const char *alg_name,
44 struct cryptd_ahash *cryptd_alloc_ahash(const char *alg_name,
62 struct cryptd_aead *cryptd_alloc_aead(const char *alg_name,
Dacompress.h107 struct crypto_acomp *crypto_alloc_acomp(const char *alg_name, u32 type,
125 struct crypto_acomp *crypto_alloc_acomp_node(const char *alg_name, u32 type,
176 static inline int crypto_has_acomp(const char *alg_name, u32 type, u32 mask) in crypto_has_acomp() argument
182 return crypto_has_alg(alg_name, type, mask); in crypto_has_acomp()
Dskcipher.h184 struct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name,
187 struct crypto_sync_skcipher *crypto_alloc_sync_skcipher(const char *alg_name,
222 int crypto_has_skcipher(const char *alg_name, u32 type, u32 mask);
Dhash.h273 struct crypto_ahash *crypto_alloc_ahash(const char *alg_name, u32 type,
302 int crypto_has_ahash(const char *alg_name, u32 type, u32 mask);
718 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type,
Drng.h90 struct crypto_rng *crypto_alloc_rng(const char *alg_name, u32 type, u32 mask);
/kernel/linux/linux-5.10/crypto/
Dinternal.h78 struct crypto_alg *crypto_find_alg(const char *alg_name,
82 void *crypto_alloc_tfm_node(const char *alg_name,
86 static inline void *crypto_alloc_tfm(const char *alg_name, in crypto_alloc_tfm() argument
89 return crypto_alloc_tfm_node(alg_name, frontend, type, mask, NUMA_NO_NODE); in crypto_alloc_tfm()
Dacompress.c105 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()
Dapi.c402 struct crypto_tfm *crypto_alloc_base(const char *alg_name, u32 type, u32 mask) in crypto_alloc_base() argument
410 alg = crypto_alg_mod_lookup(alg_name, type, mask); in crypto_alloc_base()
479 struct crypto_alg *crypto_find_alg(const char *alg_name, in crypto_find_alg() argument
490 return crypto_alg_mod_lookup(alg_name, type, mask); in crypto_find_alg()
517 void *crypto_alloc_tfm_node(const char *alg_name, in crypto_alloc_tfm_node() argument
527 alg = crypto_find_alg(alg_name, frontend, type, mask); in crypto_alloc_tfm_node()
Dkpp.c84 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()
Dakcipher.c102 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()
Drng.c110 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()
Dahash.c555 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()
Dskcipher.c758 struct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name, in crypto_alloc_skcipher() argument
761 return crypto_alloc_tfm(alg_name, &crypto_skcipher_type, type, mask); in crypto_alloc_skcipher()
766 const char *alg_name, u32 type, u32 mask) in crypto_alloc_sync_skcipher() argument
773 tfm = crypto_alloc_tfm(alg_name, &crypto_skcipher_type, type, mask); in crypto_alloc_sync_skcipher()
789 int crypto_has_skcipher(const char *alg_name, u32 type, u32 mask) in crypto_has_skcipher() argument
791 return crypto_type_has_alg(alg_name, &crypto_skcipher_type, type, mask); in crypto_has_skcipher()
/kernel/linux/linux-5.10/include/linux/
Dcrypto.h680 struct crypto_tfm *crypto_alloc_base(const char *alg_name, u32 type, u32 mask);
785 static inline struct crypto_cipher *crypto_alloc_cipher(const char *alg_name, in crypto_alloc_cipher() argument
792 return __crypto_cipher_cast(crypto_alloc_base(alg_name, type, mask)); in crypto_alloc_cipher()
819 static inline int crypto_has_cipher(const char *alg_name, u32 type, u32 mask) in crypto_has_cipher() argument
825 return crypto_has_alg(alg_name, type, mask); in crypto_has_cipher()
913 static inline struct crypto_comp *crypto_alloc_comp(const char *alg_name, in crypto_alloc_comp() argument
920 return __crypto_comp_cast(crypto_alloc_base(alg_name, type, mask)); in crypto_alloc_comp()
933 static inline int crypto_has_comp(const char *alg_name, u32 type, u32 mask) in crypto_has_comp() argument
939 return crypto_has_alg(alg_name, type, mask); in crypto_has_comp()
/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_ipcomp.c272 static struct crypto_comp * __percpu *ipcomp_alloc_tfms(const char *alg_name) in ipcomp_alloc_tfms() argument
285 if (!strcmp(crypto_comp_name(tfm), alg_name)) { in ipcomp_alloc_tfms()
304 struct crypto_comp *tfm = crypto_alloc_comp(alg_name, 0, in ipcomp_alloc_tfms()
360 ipcd->tfms = ipcomp_alloc_tfms(x->calg->alg_name); in ipcomp_init_state()
365 calg_desc = xfrm_calg_get_byname(x->calg->alg_name, 0); in ipcomp_init_state()
/kernel/linux/linux-5.10/drivers/net/netdevsim/
Dipsec.c90 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()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dxfrm.h78 char alg_name[64]; member
83 char alg_name[64]; member
89 char alg_name[64]; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dxfrm.h91 char alg_name[64]; member
96 char alg_name[64]; member
102 char alg_name[64]; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dxfrm.h103 char alg_name[64]; member
109 char alg_name[64]; member
116 char alg_name[64]; member
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/zip/
Dzip_crypto.c56 #define COMP_NAME_TO_TYPE(alg_name) \ argument
57 (!strcmp((alg_name), "zlib-deflate") ? HZIP_ALG_TYPE_ZLIB : \
58 !strcmp((alg_name), "gzip") ? HZIP_ALG_TYPE_GZIP : 0) \
396 const char *alg_name = crypto_tfm_alg_name(&tfm->base); in hisi_zip_acomp_init() local
401 ret = hisi_zip_ctx_init(ctx, COMP_NAME_TO_TYPE(alg_name), tfm->base.node); in hisi_zip_acomp_init()
/kernel/linux/linux-5.10/drivers/crypto/qce/
Dsha.c374 const char *alg_name; in qce_ahash_hmac_setkey() local
385 alg_name = "sha1-qce"; in qce_ahash_hmac_setkey()
387 alg_name = "sha256-qce"; in qce_ahash_hmac_setkey()
391 ahash_tfm = crypto_alloc_ahash(alg_name, 0, 0); in qce_ahash_hmac_setkey()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbevf/
Dipsec.c216 char *alg_name = NULL; in ixgbevf_ipsec_parse_proto_keys() local
232 alg_name = xs->aead->alg_name; in ixgbevf_ipsec_parse_proto_keys()
234 if (strcmp(alg_name, aes_gcm_name)) { in ixgbevf_ipsec_parse_proto_keys()
/kernel/linux/linux-5.10/net/ipv4/
Desp4.c1027 x->geniv, x->aead->alg_name) >= CRYPTO_MAX_ALG_NAME) in esp_init_aead()
1071 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
1072 x->ealg->alg_name, in esp_init_authenc()
1079 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
1080 x->ealg->alg_name, in esp_init_authenc()
1112 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in esp_init_authenc()
1119 x->aalg->alg_name, in esp_init_authenc()

123