/drivers/staging/rtl8187se/ieee80211/ |
D | ieee80211_crypt.c | 107 struct ieee80211_crypto_alg *alg; in ieee80211_register_crypto_ops() local 112 alg = kzalloc(sizeof(*alg), GFP_KERNEL); in ieee80211_register_crypto_ops() 113 if (alg == NULL) in ieee80211_register_crypto_ops() 116 alg->ops = ops; in ieee80211_register_crypto_ops() 119 list_add(&alg->list, &hcrypt->algs); in ieee80211_register_crypto_ops() 138 struct ieee80211_crypto_alg *alg = in ieee80211_unregister_crypto_ops() local 140 if (alg->ops == ops) { in ieee80211_unregister_crypto_ops() 141 list_del(&alg->list); in ieee80211_unregister_crypto_ops() 142 del_alg = alg; in ieee80211_unregister_crypto_ops() 168 struct ieee80211_crypto_alg *alg = in ieee80211_get_crypto_ops() local [all …]
|
D | ieee80211_wx.c | 478 const char *alg; in ieee80211_wx_set_encode_ext() local 500 if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) in ieee80211_wx_set_encode_ext() 510 ext->alg == IW_ENCODE_ALG_NONE) { in ieee80211_wx_set_encode_ext() 531 switch (ext->alg) { in ieee80211_wx_set_encode_ext() 533 alg = "WEP"; in ieee80211_wx_set_encode_ext() 536 alg = "TKIP"; in ieee80211_wx_set_encode_ext() 539 alg = "CCMP"; in ieee80211_wx_set_encode_ext() 543 dev->name, ext->alg); in ieee80211_wx_set_encode_ext() 549 ops = ieee80211_get_crypto_ops(alg); in ieee80211_wx_set_encode_ext() 551 ops = ieee80211_get_crypto_ops(alg); in ieee80211_wx_set_encode_ext() [all …]
|
/drivers/staging/rtl8192e/ |
D | rtllib_crypt.c | 104 struct rtllib_crypto_alg *alg; in rtllib_register_crypto_ops() local 109 alg = kzalloc(sizeof(*alg), GFP_KERNEL); in rtllib_register_crypto_ops() 110 if (alg == NULL) in rtllib_register_crypto_ops() 113 alg->ops = ops; in rtllib_register_crypto_ops() 116 list_add(&alg->list, &hcrypt->algs); in rtllib_register_crypto_ops() 137 struct rtllib_crypto_alg *alg = in rtllib_unregister_crypto_ops() local 139 if (alg->ops == ops) { in rtllib_unregister_crypto_ops() 140 list_del(&alg->list); in rtllib_unregister_crypto_ops() 141 del_alg = alg; in rtllib_unregister_crypto_ops() 169 struct rtllib_crypto_alg *alg = in rtllib_get_crypto_ops() local [all …]
|
D | rtllib_wx.c | 528 const char *alg, *module; in rtllib_wx_set_encode_ext() local 548 if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) in rtllib_wx_set_encode_ext() 558 ext->alg == IW_ENCODE_ALG_NONE) { in rtllib_wx_set_encode_ext() 575 switch (ext->alg) { in rtllib_wx_set_encode_ext() 577 alg = "R-WEP"; in rtllib_wx_set_encode_ext() 581 alg = "R-TKIP"; in rtllib_wx_set_encode_ext() 585 alg = "R-CCMP"; in rtllib_wx_set_encode_ext() 590 dev->name, ext->alg); in rtllib_wx_set_encode_ext() 594 printk(KERN_INFO "alg name:%s\n", alg); in rtllib_wx_set_encode_ext() 596 ops = lib80211_get_crypto_ops(alg); in rtllib_wx_set_encode_ext() [all …]
|
/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt.c | 106 struct ieee80211_crypto_alg *alg; in ieee80211_register_crypto_ops() local 111 alg = kzalloc(sizeof(*alg), GFP_KERNEL); in ieee80211_register_crypto_ops() 112 if (alg == NULL) in ieee80211_register_crypto_ops() 115 alg->ops = ops; in ieee80211_register_crypto_ops() 118 list_add(&alg->list, &hcrypt->algs); in ieee80211_register_crypto_ops() 138 struct ieee80211_crypto_alg *alg = in ieee80211_unregister_crypto_ops() local 140 if (alg->ops == ops) { in ieee80211_unregister_crypto_ops() 141 list_del(&alg->list); in ieee80211_unregister_crypto_ops() 142 del_alg = alg; in ieee80211_unregister_crypto_ops() 169 struct ieee80211_crypto_alg *alg = in ieee80211_get_crypto_ops() local [all …]
|
D | proc.c | 54 struct crypto_alg *alg = (struct crypto_alg *)p; in c_show() local 56 seq_printf(m, "name : %s\n", alg->cra_name); in c_show() 58 (alg->cra_module ? in c_show() 59 alg->cra_module->name : in c_show() 62 switch (alg->cra_flags & CRYPTO_ALG_TYPE_MASK) { in c_show() 65 seq_printf(m, "blocksize : %u\n", alg->cra_blocksize); in c_show() 67 alg->cra_cipher.cia_min_keysize); in c_show() 69 alg->cra_cipher.cia_max_keysize); in c_show() 74 seq_printf(m, "blocksize : %u\n", alg->cra_blocksize); in c_show() 76 alg->cra_digest.dia_digestsize); in c_show()
|
D | crypto_compat.h | 39 struct crypto_alg *alg; in crypto_alloc_tfm() local 41 alg = crypto_alg_mod_lookup(name, 0, CRYPTO_ALG_ASYNC); in crypto_alloc_tfm() 42 err = PTR_ERR(alg); in crypto_alloc_tfm() 43 if (IS_ERR(alg)) in crypto_alloc_tfm() 46 tfm = __crypto_alloc_tfm(alg, flags); in crypto_alloc_tfm() 49 crypto_mod_put(alg); in crypto_alloc_tfm()
|
D | ieee80211_wx.c | 535 const char *alg, *module; in ieee80211_wx_set_encode_ext() local 559 if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) in ieee80211_wx_set_encode_ext() 571 ext->alg == IW_ENCODE_ALG_NONE) { in ieee80211_wx_set_encode_ext() 593 switch (ext->alg) { in ieee80211_wx_set_encode_ext() 595 alg = "WEP"; in ieee80211_wx_set_encode_ext() 599 alg = "TKIP"; in ieee80211_wx_set_encode_ext() 603 alg = "CCMP"; in ieee80211_wx_set_encode_ext() 608 dev->name, ext->alg); in ieee80211_wx_set_encode_ext() 612 printk("alg name:%s\n",alg); in ieee80211_wx_set_encode_ext() 614 ops = ieee80211_get_crypto_ops(alg); in ieee80211_wx_set_encode_ext() [all …]
|
D | autoload.c | 34 struct crypto_alg *alg = crypto_alg_lookup(name); in crypto_alg_mod_lookup() local 35 if (alg == NULL) { in crypto_alg_mod_lookup() 37 alg = crypto_alg_lookup(name); in crypto_alg_mod_lookup() 39 return alg; in crypto_alg_mod_lookup()
|
D | rtl_crypto.h | 122 int crypto_register_alg(struct crypto_alg *alg); 123 int crypto_unregister_alg(struct crypto_alg *alg); 228 struct crypto_alg *alg = tfm->__crt_alg; in crypto_tfm_alg_modname() local 230 if (alg->cra_module) in crypto_tfm_alg_modname() 231 return alg->cra_module->name; in crypto_tfm_alg_modname()
|
/drivers/crypto/ |
D | picoxcell_crypto.c | 141 struct crypto_alg alg; member 182 static inline struct spacc_alg *to_spacc_alg(struct crypto_alg *alg) in to_spacc_alg() argument 184 return alg ? container_of(alg, struct spacc_alg, alg) : NULL; in to_spacc_alg() 408 struct spacc_alg *alg = to_spacc_alg(req->req->tfm->__crt_alg); in spacc_aead_free_ddts() local 411 unsigned ivsize = alg->alg.cra_aead.ivsize; in spacc_aead_free_ddts() 497 struct spacc_alg *alg = to_spacc_alg(tfm->base.__crt_alg); in spacc_aead_setkey() local 526 if ((alg->ctrl_default & SPACC_CRYPTO_ALG_MASK) == in spacc_aead_setkey() 564 struct crypto_alg *alg = req->req->tfm->__crt_alg; in spacc_aead_need_fallback() local 565 struct spacc_alg *spacc_alg = to_spacc_alg(alg); in spacc_aead_need_fallback() 615 struct crypto_alg *alg = req->req->tfm->__crt_alg; in spacc_aead_submit() local [all …]
|
D | talitos.c | 1971 } alg; member 1978 .alg.crypto = { 1997 .alg.crypto = { 2017 .alg.crypto = { 2036 .alg.crypto = { 2056 .alg.crypto = { 2075 .alg.crypto = { 2095 .alg.crypto = { 2114 .alg.crypto = { 2134 .alg.crypto = { [all …]
|
D | n2_core.c | 250 struct ahash_alg alg; member 255 struct crypto_alg *alg = tfm->__crt_alg; in n2_ahash_alg() local 258 ahash_alg = container_of(alg, struct ahash_alg, halg.base); in n2_ahash_alg() 260 return container_of(ahash_alg, struct n2_ahash_alg, alg); in n2_ahash_alg() 270 struct crypto_alg *alg = tfm->__crt_alg; in n2_hmac_alg() local 273 ahash_alg = container_of(alg, struct ahash_alg, halg.base); in n2_hmac_alg() 275 return container_of(ahash_alg, struct n2_hmac_alg, derived.alg); in n2_hmac_alg() 703 struct crypto_alg alg; member 708 struct crypto_alg *alg = tfm->__crt_alg; in n2_cipher_alg() local 710 return container_of(alg, struct n2_cipher_alg, alg); in n2_cipher_alg() [all …]
|
D | hifn_795x.c | 633 struct crypto_alg alg; member 663 #define crypto_alg_to_hifn(a) container_of(a, struct hifn_crypto_alg, alg) 2474 struct crypto_alg *alg = tfm->__crt_alg; in hifn_cra_init() local 2475 struct hifn_crypto_alg *ha = crypto_alg_to_hifn(alg); in hifn_cra_init() 2485 struct hifn_crypto_alg *alg; in hifn_alg_alloc() local 2488 alg = kzalloc(sizeof(struct hifn_crypto_alg), GFP_KERNEL); in hifn_alg_alloc() 2489 if (!alg) in hifn_alg_alloc() 2492 snprintf(alg->alg.cra_name, CRYPTO_MAX_ALG_NAME, "%s", t->name); in hifn_alg_alloc() 2493 snprintf(alg->alg.cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s-%s", in hifn_alg_alloc() 2496 alg->alg.cra_priority = 300; in hifn_alg_alloc() [all …]
|
/drivers/net/wireless/ipw2x00/ |
D | libipw_wx.c | 531 const char *alg, *module; in libipw_wx_set_encodeext() local 552 if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) in libipw_wx_set_encodeext() 562 ext->alg == IW_ENCODE_ALG_NONE) { in libipw_wx_set_encodeext() 587 switch (ext->alg) { in libipw_wx_set_encodeext() 589 alg = "WEP"; in libipw_wx_set_encodeext() 593 alg = "TKIP"; in libipw_wx_set_encodeext() 597 alg = "CCMP"; in libipw_wx_set_encodeext() 602 dev->name, ext->alg); in libipw_wx_set_encodeext() 607 ops = lib80211_get_crypto_ops(alg); in libipw_wx_set_encodeext() 610 ops = lib80211_get_crypto_ops(alg); in libipw_wx_set_encodeext() [all …]
|
/drivers/crypto/amcc/ |
D | crypto4xx_core.c | 992 struct crypto_alg *alg = tfm->__crt_alg; in crypto4xx_alg_init() local 993 struct crypto4xx_alg *amcc_alg = crypto_alg_to_crypto4xx_alg(alg); in crypto4xx_alg_init() 1003 switch (alg->cra_flags & CRYPTO_ALG_TYPE_MASK) { in crypto4xx_alg_init() 1028 struct crypto4xx_alg *alg; in crypto4xx_register_alg() local 1033 alg = kzalloc(sizeof(struct crypto4xx_alg), GFP_KERNEL); in crypto4xx_register_alg() 1034 if (!alg) in crypto4xx_register_alg() 1037 alg->alg = crypto_alg[i]; in crypto4xx_register_alg() 1038 alg->dev = sec_dev; in crypto4xx_register_alg() 1040 switch (alg->alg.type) { in crypto4xx_register_alg() 1042 rc = crypto_register_ahash(&alg->alg.u.hash); in crypto4xx_register_alg() [all …]
|
D | crypto4xx_core.h | 153 struct crypto4xx_alg_common alg; member 163 struct crypto4xx_alg, alg.u.hash); in crypto_alg_to_crypto4xx_alg() 166 return container_of(x, struct crypto4xx_alg, alg.u.cipher); in crypto_alg_to_crypto4xx_alg()
|
/drivers/staging/rtl8192e/rtl8192e/ |
D | rtl_wx.c | 996 u8 idx = 0, alg = 0, group = 0; in r8192_wx_set_enc_ext() local 998 ext->alg == IW_ENCODE_ALG_NONE) { in r8192_wx_set_enc_ext() 1006 alg = (ext->alg == IW_ENCODE_ALG_CCMP) ? KEY_TYPE_CCMP : in r8192_wx_set_enc_ext() 1007 ext->alg; in r8192_wx_set_enc_ext() 1014 (alg == KEY_TYPE_WEP40)) { in r8192_wx_set_enc_ext() 1015 if ((ext->key_len == 13) && (alg == KEY_TYPE_WEP40)) in r8192_wx_set_enc_ext() 1016 alg = KEY_TYPE_WEP104; in r8192_wx_set_enc_ext() 1017 ieee->pairwise_key_type = alg; in r8192_wx_set_enc_ext() 1022 if ((alg & KEY_TYPE_WEP40) && (ieee->auth_mode != 2)) { in r8192_wx_set_enc_ext() 1024 ieee->pairwise_key_type = alg = KEY_TYPE_WEP104; in r8192_wx_set_enc_ext() [all …]
|
D | rtl_crypto.h | 122 int crypto_register_alg(struct crypto_alg *alg); 123 int crypto_unregister_alg(struct crypto_alg *alg); 225 struct crypto_alg *alg = tfm->__crt_alg; in crypto_tfm_alg_modname() local 227 if (alg->cra_module) in crypto_tfm_alg_modname() 228 return alg->cra_module->name; in crypto_tfm_alg_modname()
|
/drivers/staging/rtl8192u/ |
D | r8192U_wx.c | 907 u8 idx = 0, alg = 0, group = 0; in r8192_wx_set_enc_ext() local 909 ext->alg == IW_ENCODE_ALG_NONE) //none is not allowed to use hwsec WB 2008.07.01 in r8192_wx_set_enc_ext() 912 …alg = (ext->alg == IW_ENCODE_ALG_CCMP)?KEY_TYPE_CCMP:ext->alg; // as IW_ENCODE_ALG_CCMP is define… in r8192_wx_set_enc_ext() 918 if ((!group) || (IW_MODE_ADHOC == ieee->iw_mode) || (alg == KEY_TYPE_WEP40)) in r8192_wx_set_enc_ext() 920 if ((ext->key_len == 13) && (alg == KEY_TYPE_WEP40) ) in r8192_wx_set_enc_ext() 921 alg = KEY_TYPE_WEP104; in r8192_wx_set_enc_ext() 922 ieee->pairwise_key_type = alg; in r8192_wx_set_enc_ext() 927 if ((alg & KEY_TYPE_WEP40) && (ieee->auth_mode !=2) ) in r8192_wx_set_enc_ext() 933 alg, //KeyType in r8192_wx_set_enc_ext() 940 ieee->group_key_type = alg; in r8192_wx_set_enc_ext() [all …]
|
/drivers/net/wireless/orinoco/ |
D | wext.c | 31 enum orinoco_alg alg, const u8 *key, int key_len, in orinoco_set_key() argument 59 switch (alg) { in orinoco_set_key() 727 int idx, alg = ext->alg, set_key = 1; in orinoco_ioctl_set_encodeext() local 744 alg = IW_ENCODE_ALG_NONE; in orinoco_ioctl_set_encodeext() 746 if (priv->has_wpa && (alg != IW_ENCODE_ALG_TKIP)) { in orinoco_ioctl_set_encodeext() 753 set_key = ((alg == IW_ENCODE_ALG_TKIP) || in orinoco_ioctl_set_encodeext() 759 switch (alg) { in orinoco_ioctl_set_encodeext() 846 ext->alg = IW_ENCODE_ALG_NONE; in orinoco_ioctl_get_encodeext() 851 ext->alg = IW_ENCODE_ALG_WEP; in orinoco_ioctl_get_encodeext() 857 ext->alg = IW_ENCODE_ALG_TKIP; in orinoco_ioctl_get_encodeext()
|
/drivers/net/wireless/hostap/ |
D | hostap_ioctl.c | 3212 const char *alg, *module; in prism2_ioctl_siwencodeext() local 3247 ext->alg == IW_ENCODE_ALG_NONE) { in prism2_ioctl_siwencodeext() 3253 switch (ext->alg) { in prism2_ioctl_siwencodeext() 3255 alg = "WEP"; in prism2_ioctl_siwencodeext() 3259 alg = "TKIP"; in prism2_ioctl_siwencodeext() 3263 alg = "CCMP"; in prism2_ioctl_siwencodeext() 3268 local->dev->name, ext->alg); in prism2_ioctl_siwencodeext() 3273 ops = lib80211_get_crypto_ops(alg); in prism2_ioctl_siwencodeext() 3276 ops = lib80211_get_crypto_ops(alg); in prism2_ioctl_siwencodeext() 3280 local->dev->name, alg); in prism2_ioctl_siwencodeext() [all …]
|
/drivers/staging/vt6656/ |
D | hostap.c | 422 if (param->u.crypt.alg > WPA_ALG_CCMP) in hostap_set_encryption() 444 DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " hostap_set_encryption: alg %d \n", param->u.crypt.alg); in hostap_set_encryption() 446 if (param->u.crypt.alg == WPA_ALG_NONE) { in hostap_set_encryption() 489 if (param->u.crypt.alg == WPA_ALG_WEP) { in hostap_set_encryption() 538 if (param->u.crypt.alg == WPA_ALG_TKIP) { in hostap_set_encryption() 547 if (param->u.crypt.alg == WPA_ALG_CCMP) { in hostap_set_encryption()
|
/drivers/staging/vt6655/ |
D | hostap.c | 470 if (param->u.crypt.alg > WPA_ALG_CCMP) in hostap_set_encryption() 492 DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " hostap_set_encryption: alg %d \n", param->u.crypt.alg); in hostap_set_encryption() 494 if (param->u.crypt.alg == WPA_ALG_NONE) { in hostap_set_encryption() 535 if (param->u.crypt.alg == WPA_ALG_WEP) { in hostap_set_encryption() 584 if (param->u.crypt.alg == WPA_ALG_TKIP) { in hostap_set_encryption() 593 if (param->u.crypt.alg == WPA_ALG_CCMP) { in hostap_set_encryption()
|
/drivers/crypto/caam/ |
D | caamhash.c | 1668 struct ahash_alg *alg = in caam_hash_cra_init() local 1671 container_of(alg, struct caam_hash_alg, ahash_alg); in caam_hash_cra_init() 1773 struct crypto_alg *alg; in caam_hash_alloc() local 1783 alg = &halg->halg.base; in caam_hash_alloc() 1786 snprintf(alg->cra_name, CRYPTO_MAX_ALG_NAME, "%s", in caam_hash_alloc() 1788 snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", in caam_hash_alloc() 1791 snprintf(alg->cra_name, CRYPTO_MAX_ALG_NAME, "%s", in caam_hash_alloc() 1793 snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", in caam_hash_alloc() 1796 alg->cra_module = THIS_MODULE; in caam_hash_alloc() 1797 alg->cra_init = caam_hash_cra_init; in caam_hash_alloc() [all …]
|