/linux-6.3-rc2/crypto/asymmetric_keys/ |
A D | public_key.c | 70 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() 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() 239 char alg_name[CRYPTO_MAX_ALG_NAME]; in software_key_eds_op() local 246 params->hash_algo, alg_name); in software_key_eds_op() 250 tfm = crypto_alloc_akcipher(alg_name, 0, 0); in software_key_eds_op() 384 char alg_name[CRYPTO_MAX_ALG_NAME]; in public_key_verify_signature() local [all …]
|
/linux-6.3-rc2/include/crypto/internal/ |
A 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.3-rc2/include/crypto/ |
A 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,
|
A D | acompress.h | 108 struct crypto_acomp *crypto_alloc_acomp(const char *alg_name, u32 type, 126 struct crypto_acomp *crypto_alloc_acomp_node(const char *alg_name, u32 type, 177 static inline int crypto_has_acomp(const char *alg_name, u32 type, u32 mask) in crypto_has_acomp() argument 183 return crypto_has_alg(alg_name, type, mask); in crypto_has_acomp()
|
A D | skcipher.h | 188 struct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name, 191 struct crypto_sync_skcipher *crypto_alloc_sync_skcipher(const char *alg_name, 226 int crypto_has_skcipher(const char *alg_name, u32 type, u32 mask);
|
A D | hash.h | 273 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, 721 int crypto_has_shash(const char *alg_name, u32 type, u32 mask);
|
A D | kpp.h | 106 struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask); 108 int crypto_has_kpp(const char *alg_name, u32 type, u32 mask);
|
A D | rng.h | 90 struct crypto_rng *crypto_alloc_rng(const char *alg_name, u32 type, u32 mask);
|
/linux-6.3-rc2/crypto/ |
A D | kpp.c | 92 struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask) in crypto_alloc_kpp() argument 94 return crypto_alloc_tfm(alg_name, &crypto_kpp_type, type, mask); in crypto_alloc_kpp() 107 int crypto_has_kpp(const char *alg_name, u32 type, u32 mask) in crypto_has_kpp() argument 109 return crypto_type_has_alg(alg_name, &crypto_kpp_type, type, mask); in crypto_has_kpp()
|
A D | internal.h | 113 struct crypto_alg *crypto_find_alg(const char *alg_name, 117 void *crypto_alloc_tfm_node(const char *alg_name, 121 static inline void *crypto_alloc_tfm(const char *alg_name, in crypto_alloc_tfm() argument 124 return crypto_alloc_tfm_node(alg_name, frontend, type, mask, NUMA_NO_NODE); in crypto_alloc_tfm()
|
A D | acompress.c | 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()
|
A D | api.c | 456 struct crypto_tfm *crypto_alloc_base(const char *alg_name, u32 type, u32 mask) in crypto_alloc_base() argument 464 alg = crypto_alg_mod_lookup(alg_name, type, mask); in crypto_alloc_base() 533 struct crypto_alg *crypto_find_alg(const char *alg_name, in crypto_find_alg() argument 544 return crypto_alg_mod_lookup(alg_name, type, mask); in crypto_find_alg() 571 void *crypto_alloc_tfm_node(const char *alg_name, in crypto_alloc_tfm_node() argument 581 alg = crypto_find_alg(alg_name, frontend, type, mask); in crypto_alloc_tfm_node()
|
A D | akcipher.c | 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()
|
A D | rng.c | 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()
|
A D | ahash.c | 524 struct crypto_ahash *crypto_alloc_ahash(const char *alg_name, u32 type, in crypto_alloc_ahash() argument 527 return crypto_alloc_tfm(alg_name, &crypto_ahash_type, type, mask); in crypto_alloc_ahash() 531 int crypto_has_ahash(const char *alg_name, u32 type, u32 mask) in crypto_has_ahash() argument 533 return crypto_type_has_alg(alg_name, &crypto_ahash_type, type, mask); in crypto_has_ahash()
|
A D | shash.c | 507 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type, in crypto_alloc_shash() argument 510 return crypto_alloc_tfm(alg_name, &crypto_shash_type, type, mask); in crypto_alloc_shash() 514 int crypto_has_shash(const char *alg_name, u32 type, u32 mask) in crypto_has_shash() argument 516 return crypto_type_has_alg(alg_name, &crypto_shash_type, type, mask); in crypto_has_shash()
|
A D | skcipher.c | 739 struct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name, in crypto_alloc_skcipher() argument 742 return crypto_alloc_tfm(alg_name, &crypto_skcipher_type, type, mask); in crypto_alloc_skcipher() 747 const char *alg_name, u32 type, u32 mask) in crypto_alloc_sync_skcipher() argument 754 tfm = crypto_alloc_tfm(alg_name, &crypto_skcipher_type, type, mask); in crypto_alloc_sync_skcipher() 770 int crypto_has_skcipher(const char *alg_name, u32 type, u32 mask) in crypto_has_skcipher() argument 772 return crypto_type_has_alg(alg_name, &crypto_skcipher_type, type, mask); in crypto_has_skcipher()
|
/linux-6.3-rc2/net/xfrm/ |
A D | xfrm_ipcomp.c | 263 static struct crypto_comp * __percpu *ipcomp_alloc_tfms(const char *alg_name) in ipcomp_alloc_tfms() argument 276 if (!strcmp(crypto_comp_name(tfm), alg_name)) { in ipcomp_alloc_tfms() 295 struct crypto_comp *tfm = crypto_alloc_comp(alg_name, 0, in ipcomp_alloc_tfms() 355 ipcd->tfms = ipcomp_alloc_tfms(x->calg->alg_name); in ipcomp_init_state() 360 calg_desc = xfrm_calg_get_byname(x->calg->alg_name, 0); in ipcomp_init_state()
|
/linux-6.3-rc2/include/linux/ |
A D | crypto.h | 659 struct crypto_tfm *crypto_alloc_base(const char *alg_name, u32 type, u32 mask); 728 static inline struct crypto_comp *crypto_alloc_comp(const char *alg_name, in crypto_alloc_comp() argument 735 return __crypto_comp_cast(crypto_alloc_base(alg_name, type, mask)); in crypto_alloc_comp() 748 static inline int crypto_has_comp(const char *alg_name, u32 type, u32 mask) in crypto_has_comp() argument 754 return crypto_has_alg(alg_name, type, mask); in crypto_has_comp()
|
/linux-6.3-rc2/drivers/net/netdevsim/ |
A 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.3-rc2/include/uapi/linux/ |
A D | xfrm.h | 103 char alg_name[64]; member 109 char alg_name[64]; member 116 char alg_name[64]; member
|
/linux-6.3-rc2/drivers/crypto/keembay/ |
A D | keembay-ocs-hcu-core.c | 757 const char *alg_name; in kmb_ocs_hcu_setkey() local 776 alg_name = "sha224-keembay-ocs"; in kmb_ocs_hcu_setkey() 780 alg_name = ctx->is_sm3_tfm ? "sm3-keembay-ocs" : in kmb_ocs_hcu_setkey() 784 alg_name = "sha384-keembay-ocs"; in kmb_ocs_hcu_setkey() 787 alg_name = "sha512-keembay-ocs"; in kmb_ocs_hcu_setkey() 793 ahash_tfm = crypto_alloc_ahash(alg_name, 0, 0); in kmb_ocs_hcu_setkey()
|
/linux-6.3-rc2/drivers/crypto/qce/ |
A D | sha.c | 341 const char *alg_name; in qce_ahash_hmac_setkey() local 352 alg_name = "sha1-qce"; in qce_ahash_hmac_setkey() 354 alg_name = "sha256-qce"; in qce_ahash_hmac_setkey() 358 ahash_tfm = crypto_alloc_ahash(alg_name, 0, 0); in qce_ahash_hmac_setkey()
|
/linux-6.3-rc2/drivers/net/ethernet/intel/ixgbevf/ |
A D | ipsec.c | 216 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()
|
/linux-6.3-rc2/drivers/crypto/hisilicon/zip/ |
A D | zip_crypto.c | 61 #define COMP_NAME_TO_TYPE(alg_name) \ argument 62 (!strcmp((alg_name), "zlib-deflate") ? HZIP_ALG_TYPE_ZLIB : \ 63 !strcmp((alg_name), "gzip") ? HZIP_ALG_TYPE_GZIP : 0) \ 702 const char *alg_name = crypto_tfm_alg_name(&tfm->base); in hisi_zip_acomp_init() local 707 ret = hisi_zip_ctx_init(ctx, COMP_NAME_TO_TYPE(alg_name), tfm->base.node); in hisi_zip_acomp_init()
|