Home
last modified time | relevance | path

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

/drivers/net/netdevsim/
Dipsec.c90 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()
/drivers/crypto/keembay/
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()
Dkeembay-ocs-aes-core.c1162 const char *alg_name = crypto_tfm_alg_name(&tfm->base); in ocs_aes_init_tfm() local
1167 blk = crypto_alloc_sync_skcipher(alg_name, 0, CRYPTO_ALG_NEED_FALLBACK); in ocs_aes_init_tfm()
1220 const char *alg_name = crypto_tfm_alg_name(&tfm->base); in ocs_aes_aead_cra_init() local
1225 blk = crypto_alloc_aead(alg_name, 0, CRYPTO_ALG_NEED_FALLBACK); in ocs_aes_aead_cra_init()
/drivers/net/ethernet/intel/ixgbevf/
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()
/drivers/crypto/qce/
Dsha.c339 const char *alg_name; in qce_ahash_hmac_setkey() local
350 alg_name = "sha1-qce"; in qce_ahash_hmac_setkey()
352 alg_name = "sha256-qce"; in qce_ahash_hmac_setkey()
356 ahash_tfm = crypto_alloc_ahash(alg_name, 0, 0); in qce_ahash_hmac_setkey()
/drivers/md/
Ddm-verity-target.c744 v->alg_name in verity_status()
799 DMEMIT(",verity_algorithm=%s", v->alg_name); in verity_status()
889 kfree(v->alg_name); in verity_dtr()
1160 v->alg_name = kstrdup(argv[7], GFP_KERNEL); in verity_ctr()
1161 if (!v->alg_name) { in verity_ctr()
1167 v->tfm = crypto_alloc_ahash(v->alg_name, 0, 0); in verity_ctr()
1180 DMINFO("%s using implementation \"%s\"", v->alg_name, in verity_ctr()
Ddm-verity.h39 char *alg_name; member
/drivers/crypto/hisilicon/zip/
Dzip_crypto.c57 #define COMP_NAME_TO_TYPE(alg_name) \ argument
58 (!strcmp((alg_name), "zlib-deflate") ? HZIP_ALG_TYPE_ZLIB : \
59 !strcmp((alg_name), "gzip") ? HZIP_ALG_TYPE_GZIP : 0) \
698 const char *alg_name = crypto_tfm_alg_name(&tfm->base); in hisi_zip_acomp_init() local
703 ret = hisi_zip_ctx_init(ctx, COMP_NAME_TO_TYPE(alg_name), tfm->base.node); in hisi_zip_acomp_init()
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.c432 char *alg_name = NULL; in ixgbe_ipsec_parse_proto_keys() local
448 alg_name = xs->aead->alg_name; in ixgbe_ipsec_parse_proto_keys()
450 if (strcmp(alg_name, aes_gcm_name)) { in ixgbe_ipsec_parse_proto_keys()
946 memcpy(xs->aead->alg_name, aes_gcm_name, sizeof(aes_gcm_name)); in ixgbe_ipsec_vf_add_sa()
/drivers/crypto/rockchip/
Drk3288_crypto_ahash.c322 const char *alg_name = crypto_tfm_alg_name(tfm); in rk_cra_hash_init() local
329 tctx->fallback_tfm = crypto_alloc_ahash(alg_name, 0, in rk_cra_hash_init()
/drivers/staging/rtl8723bs/os_dep/
Dioctl_cfg80211.c860 char *alg_name; in cfg80211_rtw_add_key() local
881 alg_name = "none"; in cfg80211_rtw_add_key()
885 alg_name = "WEP"; in cfg80211_rtw_add_key()
888 alg_name = "TKIP"; in cfg80211_rtw_add_key()
891 alg_name = "CCMP"; in cfg80211_rtw_add_key()
894 alg_name = "BIP"; in cfg80211_rtw_add_key()
901 strncpy((char *)param->u.crypt.alg, alg_name, IEEE_CRYPT_ALG_NAME_LEN); in cfg80211_rtw_add_key()
/drivers/staging/rtl8712/
Drtl871x_ioctl_linux.c1758 char *alg_name; in r871x_wx_set_enc_ext() local
1764 alg_name = "none"; in r871x_wx_set_enc_ext()
1767 alg_name = "WEP"; in r871x_wx_set_enc_ext()
1770 alg_name = "TKIP"; in r871x_wx_set_enc_ext()
1773 alg_name = "CCMP"; in r871x_wx_set_enc_ext()
1785 strscpy((char *)param->u.crypt.alg, alg_name, IEEE_CRYPT_ALG_NAME_LEN); in r871x_wx_set_enc_ext()
/drivers/crypto/
Dsa2ul.c2210 char *alg_name; in sa_register_algos() local
2221 alg_name = sa_algs[i].alg.skcipher.base.cra_name; in sa_register_algos()
2224 alg_name = sa_algs[i].alg.ahash.halg.base.cra_name; in sa_register_algos()
2227 alg_name = sa_algs[i].alg.aead.base.cra_name; in sa_register_algos()
2237 dev_err(dev, "Failed to register '%s'\n", alg_name); in sa_register_algos()
Dimg-hash.c678 static int img_hash_cra_init(struct crypto_tfm *tfm, const char *alg_name) in img_hash_cra_init() argument
683 ctx->fallback = crypto_alloc_ahash(alg_name, 0, in img_hash_cra_init()
Ds5p-sss.c1652 const char *alg_name = crypto_tfm_alg_name(tfm); in s5p_hash_cra_init_alg() local
1656 tctx->fallback = crypto_alloc_shash(alg_name, 0, in s5p_hash_cra_init_alg()
1659 pr_err("fallback alloc fails for '%s'\n", alg_name); in s5p_hash_cra_init_alg()
Domap-sham.c1324 const char *alg_name = crypto_tfm_alg_name(tfm); in omap_sham_cra_init_alg() local
1327 tctx->fallback = crypto_alloc_shash(alg_name, 0, in omap_sham_cra_init_alg()
1331 "could not be loaded.\n", alg_name); in omap_sham_cra_init_alg()
/drivers/crypto/bcm/
Dcipher.c1909 const char *alg_name; in ahash_enqueue() local
1931 alg_name = crypto_tfm_alg_name(crypto_ahash_tfm(tfm)); in ahash_enqueue()
1933 rctx->is_final ? "" : "non-", alg_name); in ahash_enqueue()
1934 err = do_shash((unsigned char *)alg_name, req->result, in ahash_enqueue()
2021 const char *alg_name; in ahash_init() local
2032 alg_name = crypto_tfm_alg_name(crypto_ahash_tfm(tfm)); in ahash_init()
2033 hash = crypto_alloc_shash(alg_name, 0, 0); in ahash_init()
/drivers/staging/r8188eu/os_dep/
Dioctl_linux.c1977 char *alg_name; in rtw_wx_set_enc_ext() local
1996 alg_name = "none"; in rtw_wx_set_enc_ext()
1999 alg_name = "WEP"; in rtw_wx_set_enc_ext()
2002 alg_name = "TKIP"; in rtw_wx_set_enc_ext()
2005 alg_name = "CCMP"; in rtw_wx_set_enc_ext()
2011 strncpy((char *)param->u.crypt.alg, alg_name, IEEE_CRYPT_ALG_NAME_LEN); in rtw_wx_set_enc_ext()