Home
last modified time | relevance | path

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

/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()
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()
[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 …]
/crypto/
Dinternal.h113 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()
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.c441 struct crypto_tfm *crypto_alloc_base(const char *alg_name, u32 type, u32 mask) in crypto_alloc_base() argument
449 alg = crypto_alg_mod_lookup(alg_name, type, mask); in crypto_alloc_base()
518 struct crypto_alg *crypto_find_alg(const char *alg_name, in crypto_find_alg() argument
529 return crypto_alg_mod_lookup(alg_name, type, mask); in crypto_find_alg()
556 void *crypto_alloc_tfm_node(const char *alg_name, in crypto_alloc_tfm_node() argument
566 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.c753 struct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name, in crypto_alloc_skcipher() argument
756 return crypto_alloc_tfm(alg_name, &crypto_skcipher_type, type, mask); in crypto_alloc_skcipher()
761 const char *alg_name, u32 type, u32 mask) in crypto_alloc_sync_skcipher() argument
768 tfm = crypto_alloc_tfm(alg_name, &crypto_skcipher_type, type, mask); in crypto_alloc_sync_skcipher()
784 int crypto_has_skcipher(const char *alg_name, u32 type, u32 mask) in crypto_has_skcipher() argument
786 return crypto_type_has_alg(alg_name, &crypto_skcipher_type, type, mask); in crypto_has_skcipher()
Dcryptd.c905 struct cryptd_skcipher *cryptd_alloc_skcipher(const char *alg_name, in cryptd_alloc_skcipher() argument
913 "cryptd(%s)", alg_name) >= CRYPTO_MAX_ALG_NAME) in cryptd_alloc_skcipher()
957 struct cryptd_ahash *cryptd_alloc_ahash(const char *alg_name, in cryptd_alloc_ahash() argument
965 "cryptd(%s)", alg_name) >= CRYPTO_MAX_ALG_NAME) in cryptd_alloc_ahash()
1014 struct cryptd_aead *cryptd_alloc_aead(const char *alg_name, in cryptd_alloc_aead() argument
1022 "cryptd(%s)", alg_name) >= CRYPTO_MAX_ALG_NAME) in cryptd_alloc_aead()
Daead.c214 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask) in crypto_alloc_aead() argument
216 return crypto_alloc_tfm(alg_name, &crypto_aead_type, type, mask); in crypto_alloc_aead()
Dshash.c517 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type, in crypto_alloc_shash() argument
520 return crypto_alloc_tfm(alg_name, &crypto_shash_type, type, mask); in crypto_alloc_shash()