Home
last modified time | relevance | path

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

/linux-4.4.14/include/linux/
Dcrypto.h618 struct crypto_tfm *crypto_alloc_base(const char *alg_name, u32 type, u32 mask);
754 struct crypto_ablkcipher *crypto_alloc_ablkcipher(const char *alg_name,
782 static inline int crypto_has_ablkcipher(const char *alg_name, u32 type, in crypto_has_ablkcipher() argument
785 return crypto_has_alg(alg_name, crypto_skcipher_type(type), in crypto_has_ablkcipher()
1121 const char *alg_name, u32 type, u32 mask) in crypto_alloc_blkcipher() argument
1127 return __crypto_blkcipher_cast(crypto_alloc_base(alg_name, type, mask)); in crypto_alloc_blkcipher()
1155 static inline int crypto_has_blkcipher(const char *alg_name, u32 type, u32 mask) in crypto_has_blkcipher() argument
1161 return crypto_has_alg(alg_name, type, mask); in crypto_has_blkcipher()
1440 static inline struct crypto_cipher *crypto_alloc_cipher(const char *alg_name, in crypto_alloc_cipher() argument
1447 return __crypto_cipher_cast(crypto_alloc_base(alg_name, type, mask)); in crypto_alloc_cipher()
[all …]
/linux-4.4.14/include/crypto/
Dcryptd.h31 struct cryptd_ablkcipher *cryptd_alloc_ablkcipher(const char *alg_name,
47 struct cryptd_ahash *cryptd_alloc_ahash(const char *alg_name,
63 struct cryptd_aead *cryptd_alloc_aead(const char *alg_name,
Dskcipher.h200 struct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name,
228 static inline int crypto_has_skcipher(const char *alg_name, u32 type, in crypto_has_skcipher() argument
231 return crypto_has_alg(alg_name, crypto_skcipher_type(type), in crypto_has_skcipher()
Drng.h95 struct crypto_rng *crypto_alloc_rng(const char *alg_name, u32 type, u32 mask);
Dmcryptd.h65 struct mcryptd_ahash *mcryptd_alloc_ahash(const char *alg_name,
Dcompress.h76 extern struct crypto_pcomp *crypto_alloc_pcomp(const char *alg_name, u32 type,
Dhash.h245 struct crypto_ahash *crypto_alloc_ahash(const char *alg_name, u32 type,
643 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type,
Daead.h177 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask);
Dakcipher.h130 struct crypto_akcipher *crypto_alloc_akcipher(const char *alg_name, u32 type,
/linux-4.4.14/net/xfrm/
Dxfrm_ipcomp.c275 static struct crypto_comp * __percpu *ipcomp_alloc_tfms(const char *alg_name) in ipcomp_alloc_tfms() argument
288 if (!strcmp(crypto_comp_name(tfm), alg_name)) { in ipcomp_alloc_tfms()
307 struct crypto_comp *tfm = crypto_alloc_comp(alg_name, 0, in ipcomp_alloc_tfms()
363 ipcd->tfms = ipcomp_alloc_tfms(x->calg->alg_name); in ipcomp_init_state()
368 calg_desc = xfrm_calg_get_byname(x->calg->alg_name, 0); in ipcomp_init_state()
Dxfrm_user.c58 algp->alg_name[CRYPTO_MAX_ALG_NAME - 1] = '\0'; in verify_one_alg()
74 algp->alg_name[CRYPTO_MAX_ALG_NAME - 1] = '\0'; in verify_auth_trunc()
90 algp->alg_name[CRYPTO_MAX_ALG_NAME - 1] = '\0'; in verify_aead()
279 algo = get_byname(ualg->alg_name, 1); in attach_one_algo()
288 strcpy(p->alg_name, algo->name); in attach_one_algo()
303 algo = xfrm_ealg_get_byname(ualg->alg_name, 1); in attach_crypt()
312 strcpy(p->alg_name, algo->name); in attach_crypt()
330 algo = xfrm_aalg_get_byname(ualg->alg_name, 1); in attach_auth()
339 strcpy(p->alg_name, algo->name); in attach_auth()
359 algo = xfrm_aalg_get_byname(ualg->alg_name, 1); in attach_auth_trunc()
[all …]
/linux-4.4.14/crypto/
Dpcompress.c88 struct crypto_pcomp *crypto_alloc_pcomp(const char *alg_name, u32 type, in crypto_alloc_pcomp() argument
91 return crypto_alloc_tfm(alg_name, &crypto_pcomp_type, type, mask); in crypto_alloc_pcomp()
Dapi.c424 struct crypto_tfm *crypto_alloc_base(const char *alg_name, u32 type, u32 mask) in crypto_alloc_base() argument
432 alg = crypto_alg_mod_lookup(alg_name, type, mask); in crypto_alloc_base()
499 struct crypto_alg *crypto_find_alg(const char *alg_name, in crypto_find_alg() argument
516 return lookup(alg_name, type, mask); in crypto_find_alg()
540 void *crypto_alloc_tfm(const char *alg_name, in crypto_alloc_tfm() argument
549 alg = crypto_find_alg(alg_name, frontend, type, mask); in crypto_alloc_tfm()
Dakcipher.c91 struct crypto_akcipher *crypto_alloc_akcipher(const char *alg_name, u32 type, in crypto_alloc_akcipher() argument
94 return crypto_alloc_tfm(alg_name, &crypto_akcipher_type, type, mask); in crypto_alloc_akcipher()
Dinternal.h95 struct crypto_alg *crypto_find_alg(const char *alg_name,
98 void *crypto_alloc_tfm(const char *alg_name,
Drng.c118 struct crypto_rng *crypto_alloc_rng(const char *alg_name, u32 type, u32 mask) in crypto_alloc_rng() argument
120 return crypto_alloc_tfm(alg_name, &crypto_rng_type, type, mask); in crypto_alloc_rng()
Dskcipher.c239 struct crypto_skcipher *crypto_alloc_skcipher(const char *alg_name, in crypto_alloc_skcipher() argument
242 return crypto_alloc_tfm(alg_name, &crypto_skcipher_type2, type, mask); in crypto_alloc_skcipher()
Dcryptd.c881 struct cryptd_ablkcipher *cryptd_alloc_ablkcipher(const char *alg_name, in cryptd_alloc_ablkcipher() argument
888 "cryptd(%s)", alg_name) >= CRYPTO_MAX_ALG_NAME) in cryptd_alloc_ablkcipher()
919 struct cryptd_ahash *cryptd_alloc_ahash(const char *alg_name, in cryptd_alloc_ahash() argument
926 "cryptd(%s)", alg_name) >= CRYPTO_MAX_ALG_NAME) in cryptd_alloc_ahash()
961 struct cryptd_aead *cryptd_alloc_aead(const char *alg_name, in cryptd_alloc_aead() argument
968 "cryptd(%s)", alg_name) >= CRYPTO_MAX_ALG_NAME) in cryptd_alloc_aead()
Daead.c339 struct crypto_aead *crypto_alloc_aead(const char *alg_name, u32 type, u32 mask) in crypto_alloc_aead() argument
341 return crypto_alloc_tfm(alg_name, &crypto_aead_type, type, mask); in crypto_alloc_aead()
Dahash.c539 struct crypto_ahash *crypto_alloc_ahash(const char *alg_name, u32 type, in crypto_alloc_ahash() argument
542 return crypto_alloc_tfm(alg_name, &crypto_ahash_type, type, mask); in crypto_alloc_ahash()
Dshash.c576 struct crypto_shash *crypto_alloc_shash(const char *alg_name, u32 type, in crypto_alloc_shash() argument
579 return crypto_alloc_tfm(alg_name, &crypto_shash_type, type, mask); in crypto_alloc_shash()
Dmcryptd.c597 struct mcryptd_ahash *mcryptd_alloc_ahash(const char *alg_name, in mcryptd_alloc_ahash() argument
604 "mcryptd(%s)", alg_name) >= CRYPTO_MAX_ALG_NAME) in mcryptd_alloc_ahash()
Dablkcipher.c681 struct crypto_ablkcipher *crypto_alloc_ablkcipher(const char *alg_name, in crypto_alloc_ablkcipher() argument
693 alg = crypto_lookup_skcipher(alg_name, type, mask); in crypto_alloc_ablkcipher()
/linux-4.4.14/net/ipv6/
Desp6.c503 x->geniv, x->aead->alg_name) >= CRYPTO_MAX_ALG_NAME) in esp_init_aead()
547 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
548 x->ealg->alg_name, in esp_init_authenc()
555 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
556 x->ealg->alg_name, in esp_init_authenc()
588 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in esp_init_authenc()
595 x->aalg->alg_name, in esp_init_authenc()
Dah6.c689 ahash = crypto_alloc_ahash(x->aalg->alg_name, 0, 0); in ah6_init_state()
704 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in ah6_init_state()
710 x->aalg->alg_name, crypto_ahash_digestsize(ahash), in ah6_init_state()
/linux-4.4.14/net/ipv4/
Desp4.c561 x->geniv, x->aead->alg_name) >= CRYPTO_MAX_ALG_NAME) in esp_init_aead()
605 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
606 x->ealg->alg_name, in esp_init_authenc()
613 x->aalg ? x->aalg->alg_name : "digest_null", in esp_init_authenc()
614 x->ealg->alg_name, in esp_init_authenc()
646 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in esp_init_authenc()
653 x->aalg->alg_name, in esp_init_authenc()
Dah4.c480 ahash = crypto_alloc_ahash(x->aalg->alg_name, 0, 0); in ah_init_state()
495 aalg_desc = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in ah_init_state()
501 __func__, x->aalg->alg_name, in ah_init_state()
/linux-4.4.14/include/uapi/linux/
Dxfrm.h102 char alg_name[64]; member
108 char alg_name[64]; member
115 char alg_name[64]; member
/linux-4.4.14/drivers/md/
Ddm-verity.c57 char *alg_name; member
607 v->alg_name in verity_status()
684 kfree(v->alg_name); in verity_dtr()
809 v->alg_name = kstrdup(argv[7], GFP_KERNEL); in verity_ctr()
810 if (!v->alg_name) { in verity_ctr()
816 v->tfm = crypto_alloc_shash(v->alg_name, 0, 0); in verity_ctr()
/linux-4.4.14/drivers/crypto/qce/
Dsha.c375 const char *alg_name; in qce_ahash_hmac_setkey() local
386 alg_name = "sha1-qce"; in qce_ahash_hmac_setkey()
388 alg_name = "sha256-qce"; in qce_ahash_hmac_setkey()
392 ahash_tfm = crypto_alloc_ahash(alg_name, CRYPTO_ALG_TYPE_AHASH, in qce_ahash_hmac_setkey()
/linux-4.4.14/net/mac80211/
Drate.c163 const char *alg_name; in ieee80211_rate_control_ops_get() local
167 alg_name = ieee80211_default_rc_algo; in ieee80211_rate_control_ops_get()
169 alg_name = name; in ieee80211_rate_control_ops_get()
171 ops = ieee80211_try_rate_control_ops_get(alg_name); in ieee80211_rate_control_ops_get()
/linux-4.4.14/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c1776 char *alg_name; in r871x_wx_set_enc_ext() local
1782 alg_name = "none"; in r871x_wx_set_enc_ext()
1785 alg_name = "WEP"; in r871x_wx_set_enc_ext()
1788 alg_name = "TKIP"; in r871x_wx_set_enc_ext()
1791 alg_name = "CCMP"; in r871x_wx_set_enc_ext()
1803 strncpy((char *)param->u.crypt.alg, alg_name, IEEE_CRYPT_ALG_NAME_LEN); in r871x_wx_set_enc_ext()
/linux-4.4.14/drivers/crypto/
Datmel-tdes.c807 const char *alg_name; in atmel_tdes_setkey() local
809 alg_name = crypto_tfm_alg_name(crypto_ablkcipher_tfm(tfm)); in atmel_tdes_setkey()
814 if (!ctx->dd->caps.has_cfb_3keys && strstr(alg_name, "cfb") in atmel_tdes_setkey()
Dimg-hash.c649 const char *alg_name = crypto_tfm_alg_name(tfm); in img_hash_cra_init() local
652 ctx->fallback = crypto_alloc_ahash(alg_name, 0, in img_hash_cra_init()
Domap-sham.c1243 const char *alg_name = crypto_tfm_alg_name(tfm); in omap_sham_cra_init_alg() local
1246 tctx->fallback = crypto_alloc_shash(alg_name, 0, in omap_sham_cra_init_alg()
1250 "could not be loaded.\n", alg_name); in omap_sham_cra_init_alg()
/linux-4.4.14/drivers/staging/rtl8188eu/os_dep/
Dioctl_linux.c1895 char *alg_name; in rtw_wx_set_enc_ext() local
1916 alg_name = "none"; in rtw_wx_set_enc_ext()
1919 alg_name = "WEP"; in rtw_wx_set_enc_ext()
1922 alg_name = "TKIP"; in rtw_wx_set_enc_ext()
1925 alg_name = "CCMP"; in rtw_wx_set_enc_ext()
1932 strncpy((char *)param->u.crypt.alg, alg_name, IEEE_CRYPT_ALG_NAME_LEN); in rtw_wx_set_enc_ext()
/linux-4.4.14/net/key/
Daf_key.c815 struct xfrm_algo_desc *a = xfrm_aalg_get_byname(x->aalg->alg_name, 0); in __pfkey_xfrm_state2msg()
822 struct xfrm_algo_desc *a = xfrm_ealg_get_byname(x->ealg->alg_name, 0); in __pfkey_xfrm_state2msg()
828 struct xfrm_algo_desc *a = xfrm_calg_get_byname(x->calg->alg_name, 0); in __pfkey_xfrm_state2msg()
1151 strcpy(x->aalg->alg_name, a->name); in pfkey_msg2xfrm_state()
1171 strcpy(x->calg->alg_name, a->name); in pfkey_msg2xfrm_state()
1186 strcpy(x->ealg->alg_name, a->name); in pfkey_msg2xfrm_state()
/linux-4.4.14/drivers/crypto/caam/
Dcaamalg.c1462 const char *alg_name = crypto_tfm_alg_name(tfm); in ablkcipher_setkey() local
1473 (strstr(alg_name, "rfc3686") != NULL)); in ablkcipher_setkey()