Home
last modified time | relevance | path

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

123

/openbmc/qemu/crypto/
H A Dhash-afalg.c29 const char *alg_name; in qcrypto_afalg_hash_format_name() local
33 alg_name = "md5"; in qcrypto_afalg_hash_format_name()
36 alg_name = "sha1"; in qcrypto_afalg_hash_format_name()
39 alg_name = "sha224"; in qcrypto_afalg_hash_format_name()
42 alg_name = "sha256"; in qcrypto_afalg_hash_format_name()
45 alg_name = "sha384"; in qcrypto_afalg_hash_format_name()
48 alg_name = "sha512"; in qcrypto_afalg_hash_format_name()
51 alg_name = "rmd160"; in qcrypto_afalg_hash_format_name()
60 name = g_strdup_printf("hmac(%s)", alg_name); in qcrypto_afalg_hash_format_name()
62 name = g_strdup_printf("%s", alg_name); in qcrypto_afalg_hash_format_name()
[all …]
H A Dcipher-afalg.c26 const char *alg_name; in qcrypto_afalg_cipher_format_name() local
33 alg_name = "aes"; in qcrypto_afalg_cipher_format_name()
36 alg_name = "cast5"; in qcrypto_afalg_cipher_format_name()
41 alg_name = "serpent"; in qcrypto_afalg_cipher_format_name()
46 alg_name = "twofish"; in qcrypto_afalg_cipher_format_name()
55 name = g_strdup_printf("%s(%s)", mode_name, alg_name); in qcrypto_afalg_cipher_format_name()
/openbmc/linux/crypto/asymmetric_keys/
H A Dpublic_key.c69 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()
143 if (strscpy(alg_name, pkey->pkey_algo, CRYPTO_MAX_ALG_NAME) < 0) in software_key_determine_akcipher()
162 char alg_name[CRYPTO_MAX_ALG_NAME]; in software_key_query() local
169 params->hash_algo, alg_name, in software_key_query()
186 sig = crypto_alloc_sig(alg_name, 0, 0); in software_key_query()
211 tfm = crypto_alloc_akcipher(alg_name, 0, 0); in software_key_query()
277 char alg_name[CRYPTO_MAX_ALG_NAME]; in software_key_eds_op() local
288 params->hash_algo, alg_name, in software_key_eds_op()
[all …]
/openbmc/linux/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()
/openbmc/linux/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 Dacompress.h109 struct crypto_acomp *crypto_alloc_acomp(const char *alg_name, u32 type,
127 struct crypto_acomp *crypto_alloc_acomp_node(const char *alg_name, u32 type,
180 static inline int crypto_has_acomp(const char *alg_name, u32 type, u32 mask) in crypto_has_acomp() argument
186 return crypto_has_alg(alg_name, type, mask); in crypto_has_acomp()
H A Dskcipher.h210 struct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name,
213 struct crypto_sync_skcipher *crypto_alloc_sync_skcipher(const char *alg_name,
248 int crypto_has_skcipher(const char *alg_name, u32 type, u32 mask);
H A Dhash.h302 struct crypto_ahash *crypto_alloc_ahash(const char *alg_name, u32 type,
333 int crypto_has_ahash(const char *alg_name, u32 type, u32 mask);
768 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type,
773 int crypto_has_shash(const char *alg_name, u32 type, u32 mask);
H A Dkpp.h129 struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask);
131 int crypto_has_kpp(const char *alg_name, u32 type, u32 mask);
H A Dsig.h43 struct crypto_sig *crypto_alloc_sig(const char *alg_name, u32 type, u32 mask);
/openbmc/linux/include/linux/
H A Dcrypto.h444 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()
/openbmc/linux/crypto/
H A Dkpp.c111 struct crypto_kpp *crypto_alloc_kpp(const char *alg_name, u32 type, u32 mask) in crypto_alloc_kpp() argument
113 return crypto_alloc_tfm(alg_name, &crypto_kpp_type, type, mask); in crypto_alloc_kpp()
126 int crypto_has_kpp(const char *alg_name, u32 type, u32 mask) in crypto_has_kpp() argument
128 return crypto_type_has_alg(alg_name, &crypto_kpp_type, type, mask); in crypto_has_kpp()
H A Dinternal.h140 struct crypto_alg *crypto_find_alg(const char *alg_name,
144 void *crypto_alloc_tfm_node(const char *alg_name,
148 static inline void *crypto_alloc_tfm(const char *alg_name, in crypto_alloc_tfm() argument
151 return crypto_alloc_tfm_node(alg_name, frontend, type, mask, NUMA_NO_NODE); in crypto_alloc_tfm()
H A Dacompress.c140 struct crypto_acomp *crypto_alloc_acomp(const char *alg_name, u32 type, in crypto_alloc_acomp() argument
143 return crypto_alloc_tfm(alg_name, &crypto_acomp_type, type, mask); in crypto_alloc_acomp()
147 struct crypto_acomp *crypto_alloc_acomp_node(const char *alg_name, u32 type, in crypto_alloc_acomp_node() argument
150 return crypto_alloc_tfm_node(alg_name, &crypto_acomp_type, type, mask, in crypto_alloc_acomp_node()
H A Dapi.c450 struct crypto_tfm *crypto_alloc_base(const char *alg_name, u32 type, u32 mask) in crypto_alloc_base() argument
458 alg = crypto_alg_mod_lookup(alg_name, type, mask); in crypto_alloc_base()
569 struct crypto_alg *crypto_find_alg(const char *alg_name, in crypto_find_alg() argument
580 return crypto_alg_mod_lookup(alg_name, type, mask); in crypto_find_alg()
607 void *crypto_alloc_tfm_node(const char *alg_name, in crypto_alloc_tfm_node() argument
617 alg = crypto_find_alg(alg_name, frontend, type, mask); in crypto_alloc_tfm_node()
H A Dsig.c76 struct crypto_sig *crypto_alloc_sig(const char *alg_name, u32 type, u32 mask) in crypto_alloc_sig() argument
78 return crypto_alloc_tfm(alg_name, &crypto_sig_type, type, mask); in crypto_alloc_sig()
H A Drng.c133 struct crypto_rng *crypto_alloc_rng(const char *alg_name, u32 type, u32 mask) in crypto_alloc_rng() argument
135 return crypto_alloc_tfm(alg_name, &crypto_rng_type, type, mask); in crypto_alloc_rng()
H A Dahash.c529 struct crypto_ahash *crypto_alloc_ahash(const char *alg_name, u32 type, in crypto_alloc_ahash() argument
532 return crypto_alloc_tfm(alg_name, &crypto_ahash_type, type, mask); in crypto_alloc_ahash()
536 int crypto_has_ahash(const char *alg_name, u32 type, u32 mask) in crypto_has_ahash() argument
538 return crypto_type_has_alg(alg_name, &crypto_ahash_type, type, mask); in crypto_has_ahash()
/openbmc/linux/net/xfrm/
H A Dxfrm_ipcomp.c260 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()
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()
383 algo = get_byname(ualg->alg_name, 1); in attach_one_algo()
394 strcpy(p->alg_name, algo->name); in attach_one_algo()
410 algo = xfrm_ealg_get_byname(ualg->alg_name, 1); in attach_crypt()
421 strcpy(p->alg_name, algo->name); in attach_crypt()
439 algo = xfrm_aalg_get_byname(ualg->alg_name, 1); in attach_auth()
450 strcpy(p->alg_name, algo->name); in attach_auth()
470 algo = xfrm_aalg_get_byname(ualg->alg_name, 1); in attach_auth_trunc()
[all …]
/openbmc/linux/drivers/crypto/starfive/
H A Djh7110-hash.c407 const char *alg_name, in starfive_hash_init_tfm() argument
417 ctx->ahash_fbk = crypto_alloc_ahash(alg_name, 0, in starfive_hash_init_tfm()
443 const char *alg_name) in starfive_hash_long_setkey() argument
452 ahash_tfm = crypto_alloc_ahash(alg_name, 0, 0); in starfive_hash_long_setkey()
493 const char *alg_name; in starfive_hash_setkey() local
507 alg_name = "sha224-starfive"; in starfive_hash_setkey()
511 alg_name = "sm3-starfive"; in starfive_hash_setkey()
513 alg_name = "sha256-starfive"; in starfive_hash_setkey()
516 alg_name = "sha384-starfive"; in starfive_hash_setkey()
519 alg_name = "sha512-starfive"; in starfive_hash_setkey()
[all …]
/openbmc/linux/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()
/openbmc/linux/include/uapi/linux/
H A Dxfrm.h103 char alg_name[64]; member
109 char alg_name[64]; member
116 char alg_name[64]; member
/openbmc/linux/drivers/crypto/intel/keembay/
H A Dkeembay-ocs-hcu-core.c757 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()
/openbmc/linux/drivers/net/ethernet/intel/ixgbevf/
H A 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()

123