/openbmc/qemu/crypto/ |
H A D | hash-afalg.c | 28 const char *alg_name; in qcrypto_afalg_hash_format_name() local 32 alg_name = "md5"; in qcrypto_afalg_hash_format_name() 35 alg_name = "sha1"; in qcrypto_afalg_hash_format_name() 38 alg_name = "sha224"; in qcrypto_afalg_hash_format_name() 41 alg_name = "sha256"; in qcrypto_afalg_hash_format_name() 44 alg_name = "sha384"; in qcrypto_afalg_hash_format_name() 47 alg_name = "sha512"; in qcrypto_afalg_hash_format_name() 50 alg_name = "rmd160"; in qcrypto_afalg_hash_format_name() 59 name = g_strdup_printf("hmac(%s)", alg_name); in qcrypto_afalg_hash_format_name() 61 name = g_strdup_printf("%s", alg_name); in qcrypto_afalg_hash_format_name()
|
H A D | cipher-afalg.c | 26 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 D | public_key.c | 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() 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() 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() 305 sig = crypto_alloc_sig(alg_name, 0, 0); in software_key_eds_op() 382 char alg_name[CRYPTO_MAX_ALG_NAME]; in public_key_verify_signature() local 410 sig->hash_algo, alg_name, in public_key_verify_signature() [all …]
|
/openbmc/linux/include/crypto/ |
H 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,
|
H A D | acompress.h | 109 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 D | skcipher.h | 210 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 D | hash.h | 302 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 D | sig.h | 43 struct crypto_sig *crypto_alloc_sig(const char *alg_name, u32 type, u32 mask);
|
H A D | kpp.h | 129 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);
|
/openbmc/linux/include/crypto/internal/ |
H 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()
|
/openbmc/linux/include/linux/ |
H A 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()
|
/openbmc/linux/crypto/ |
H A D | kpp.c | 111 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 D | internal.h | 140 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 D | acompress.c | 140 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 D | api.c | 450 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 D | sig.c | 76 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 D | rng.c | 133 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 D | ahash.c | 529 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 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()
|
H A 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() 394 strcpy(p->alg_name, algo->name); in attach_one_algo() 421 strcpy(p->alg_name, algo->name); in attach_crypt() 450 strcpy(p->alg_name, algo->name); in attach_auth() 989 strncpy(algo->alg_name, auth->alg_name, sizeof(algo->alg_name)); in copy_to_user_auth() 1002 strscpy_pad(ap->alg_name, auth->alg_name, sizeof(ap->alg_name)); in copy_to_user_auth() 1023 strscpy_pad(ap->alg_name, aead->alg_name, sizeof(ap->alg_name)); in copy_to_user_aead() 1045 strscpy_pad(ap->alg_name, ealg->alg_name, sizeof(ap->alg_name)); in copy_to_user_ealg() [all …]
|
/openbmc/linux/drivers/crypto/starfive/ |
H A D | jh7110-hash.c | 407 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 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()
|
/openbmc/linux/include/uapi/linux/ |
H A D | xfrm.h | 103 char alg_name[64]; member 109 char alg_name[64]; member 116 char alg_name[64]; member
|
/openbmc/linux/drivers/crypto/qce/ |
H 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()
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbevf/ |
H 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()
|