Home
last modified time | relevance | path

Searched refs:key_type (Results 1 – 25 of 66) sorted by relevance

123

/drivers/staging/vt6656/
Dkey.c35 struct ieee80211_key_conf *key, u32 key_type, in vnt_set_keymode() argument
51 if (key_type != VNT_KEY_DEFAULTKEY) { in vnt_set_keymode()
63 switch (key_type) { in vnt_set_keymode()
83 key_mode |= key_type; in vnt_set_keymode()
/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dcrypto.c9 u32 key_type, u32 *p_key_id) in mlx5_create_encryption_key() argument
44 MLX5_SET(encryption_key_obj, obj, key_type, key_type); in mlx5_create_encryption_key()
Dmlx5.h90 u32 key_type, u32 *p_key_id);
/drivers/md/
Ddm-default-key.c49 enum blk_crypto_key_type key_type; member
117 dkc->key_type = BLK_CRYPTO_KEY_TYPE_HW_WRAPPED; in default_key_ctr_optional()
163 dkc->key_type = BLK_CRYPTO_KEY_TYPE_STANDARD; in default_key_ctr()
237 dkc->key_type, cipher->mode_num, in default_key_ctr()
336 if (dkc->key_type == BLK_CRYPTO_KEY_TYPE_HW_WRAPPED) in default_key_status()
346 if (dkc->key_type == BLK_CRYPTO_KEY_TYPE_HW_WRAPPED) in default_key_status()
/drivers/crypto/cavium/cpt/
Dcptvf_algs.c122 fctx->enc.enc_ctrl.e.aes_key = ctx->key_type; in create_ctx_hdr()
250 ctx->key_type = AES_128_BIT; in cvm_xts_setkey()
253 ctx->key_type = AES_256_BIT; in cvm_xts_setkey()
268 ctx->key_type = AES_128_BIT; in cvm_validate_keylen()
271 ctx->key_type = AES_192_BIT; in cvm_validate_keylen()
274 ctx->key_type = AES_256_BIT; in cvm_validate_keylen()
281 ctx->key_type = 0; in cvm_validate_keylen()
Dcptvf_algs.h102 u8 key_type:2; member
/drivers/staging/vt6655/
Dkey.c19 struct ieee80211_key_conf *key, u32 key_type, in vnt_set_keymode() argument
35 if (key_type != VNT_KEY_DEFAULTKEY) { in vnt_set_keymode()
47 switch (key_type) { in vnt_set_keymode()
/drivers/staging/rtl8723bs/os_dep/
Drecv_linux.c143 enum nl80211_key_type key_type = 0; in rtw_handle_tkip_mic_err() local
165 key_type |= NL80211_KEYTYPE_GROUP; in rtw_handle_tkip_mic_err()
167 key_type |= NL80211_KEYTYPE_PAIRWISE; in rtw_handle_tkip_mic_err()
170 cfg80211_michael_mic_failure(padapter->pnetdev, (u8 *)&pmlmepriv->assoc_bssid[0], key_type, -1, in rtw_handle_tkip_mic_err()
/drivers/net/wireless/realtek/rtlwifi/
Dcore.c1530 u8 key_type = NO_ENCRYPTION; in rtl_op_set_key() local
1561 key_type = WEP40_ENCRYPTION; in rtl_op_set_key()
1566 key_type = WEP104_ENCRYPTION; in rtl_op_set_key()
1569 key_type = TKIP_ENCRYPTION; in rtl_op_set_key()
1573 key_type = AESCCMP_ENCRYPTION; in rtl_op_set_key()
1580 key_type = AESCMAC_ENCRYPTION; in rtl_op_set_key()
1590 if (key_type == WEP40_ENCRYPTION || in rtl_op_set_key()
1591 key_type == WEP104_ENCRYPTION || in rtl_op_set_key()
1614 if (!group_key || key_type == WEP40_ENCRYPTION || in rtl_op_set_key()
1615 key_type == WEP104_ENCRYPTION) { in rtl_op_set_key()
[all …]
/drivers/crypto/marvell/octeontx/
Dotx_cptvf_algs.c273 fctx->enc.enc_ctrl.e.aes_key = ctx->key_type; in create_ctx_hdr()
410 ctx->key_type = OTX_CPT_AES_128_BIT; in otx_cpt_skcipher_xts_setkey()
413 ctx->key_type = OTX_CPT_AES_256_BIT; in otx_cpt_skcipher_xts_setkey()
445 ctx->key_type = OTX_CPT_AES_128_BIT; in cpt_aes_setkey()
448 ctx->key_type = OTX_CPT_AES_192_BIT; in cpt_aes_setkey()
451 ctx->key_type = OTX_CPT_AES_256_BIT; in cpt_aes_setkey()
870 ctx->key_type = OTX_CPT_AES_128_BIT; in otx_cpt_aead_cbc_aes_sha_setkey()
873 ctx->key_type = OTX_CPT_AES_192_BIT; in otx_cpt_aead_cbc_aes_sha_setkey()
876 ctx->key_type = OTX_CPT_AES_256_BIT; in otx_cpt_aead_cbc_aes_sha_setkey()
943 ctx->key_type = OTX_CPT_AES_128_BIT; in otx_cpt_aead_gcm_aes_setkey()
[all …]
Dotx_cptvf_algs.h133 u8 key_type; member
179 u8 key_type; member
/drivers/crypto/marvell/octeontx2/
Dotx2_cptvf_algs.c258 fctx->enc.enc_ctrl.e.aes_key = ctx->key_type; in create_ctx_hdr()
425 ctx->key_type = OTX2_CPT_AES_128_BIT; in otx2_cpt_skcipher_xts_setkey()
428 ctx->key_type = OTX2_CPT_AES_192_BIT; in otx2_cpt_skcipher_xts_setkey()
431 ctx->key_type = OTX2_CPT_AES_256_BIT; in otx2_cpt_skcipher_xts_setkey()
463 ctx->key_type = OTX2_CPT_AES_128_BIT; in cpt_aes_setkey()
466 ctx->key_type = OTX2_CPT_AES_192_BIT; in cpt_aes_setkey()
469 ctx->key_type = OTX2_CPT_AES_256_BIT; in cpt_aes_setkey()
925 ctx->key_type = OTX2_CPT_AES_128_BIT; in otx2_cpt_aead_cbc_aes_sha_setkey()
928 ctx->key_type = OTX2_CPT_AES_192_BIT; in otx2_cpt_aead_cbc_aes_sha_setkey()
931 ctx->key_type = OTX2_CPT_AES_256_BIT; in otx2_cpt_aead_cbc_aes_sha_setkey()
[all …]
Dotx2_cptvf_algs.h123 u8 key_type; member
170 u8 key_type; member
/drivers/video/fbdev/omap2/omapfb/dss/
Dmanager-sysfs.c160 enum omap_dss_trans_key_type key_type; in manager_trans_key_type_show() local
165 key_type = info.trans_key_type; in manager_trans_key_type_show()
166 BUG_ON(key_type >= ARRAY_SIZE(trans_key_type_str)); in manager_trans_key_type_show()
168 return snprintf(buf, PAGE_SIZE, "%s\n", trans_key_type_str[key_type]); in manager_trans_key_type_show()
/drivers/net/wireless/ti/wl1251/
Dmain.c837 key->key_type = KEY_WEP_DEFAULT; in wl1251_set_key_type()
839 key->key_type = KEY_WEP_ADDR; in wl1251_set_key_type()
845 key->key_type = KEY_TKIP_MIC_GROUP; in wl1251_set_key_type()
847 key->key_type = KEY_TKIP_MIC_PAIRWISE; in wl1251_set_key_type()
853 key->key_type = KEY_AES_GROUP; in wl1251_set_key_type()
855 key->key_type = KEY_AES_PAIRWISE; in wl1251_set_key_type()
929 if (wl_cmd->key_type != KEY_WEP_DEFAULT) in wl1251_op_set_key()
932 if ((wl_cmd->key_type == KEY_TKIP_MIC_GROUP) || in wl1251_op_set_key()
933 (wl_cmd->key_type == KEY_TKIP_MIC_PAIRWISE)) { in wl1251_op_set_key()
/drivers/net/wireless/ti/wlcore/
Dcmd.c1347 cmd->key_type = KEY_WEP; in wl12xx_cmd_set_default_wep_key()
1362 u16 action, u8 id, u8 key_type, in wl1271_cmd_set_sta_key() argument
1381 if (key_type == KEY_WEP) in wl1271_cmd_set_sta_key()
1390 cmd->key_type = key_type; in wl1271_cmd_set_sta_key()
1397 if (key_type == KEY_TKIP) { in wl1271_cmd_set_sta_key()
1431 u16 action, u8 id, u8 key_type, in wl1271_cmd_set_ap_key() argument
1444 if (key_type == KEY_WEP) in wl1271_cmd_set_ap_key()
1456 (int)key_type, (int)hlid); in wl1271_cmd_set_ap_key()
1462 cmd->key_type = key_type; in wl1271_cmd_set_ap_key()
1467 if (key_type == KEY_TKIP) { in wl1271_cmd_set_ap_key()
Dcmd.h62 u16 action, u8 id, u8 key_type,
66 u16 action, u8 id, u8 key_type,
500 u8 key_type; member
/drivers/net/ethernet/mscc/
Docelot_flower.c480 filter->key_type = OCELOT_VCAP_KEY_ANY; in ocelot_flower_parse_key()
519 filter->key_type = OCELOT_VCAP_KEY_ETYPE; in ocelot_flower_parse_key()
542 filter->key_type = OCELOT_VCAP_KEY_IPV4; in ocelot_flower_parse_key()
556 filter->key_type = OCELOT_VCAP_KEY_IPV6; in ocelot_flower_parse_key()
631 filter->key_type = OCELOT_VCAP_KEY_ETYPE; in ocelot_flower_parse_key()
Docelot_mrp.c61 filter->key_type = OCELOT_VCAP_KEY_ETYPE; in ocelot_mrp_redirect_add_vcap()
91 filter->key_type = OCELOT_VCAP_KEY_ETYPE; in ocelot_mrp_copy_add_vcap()
Docelot_vcap.c387 switch (filter->key_type) { in is2_entry_set()
493 if (filter->key_type == OCELOT_VCAP_KEY_IPV4) { in is2_entry_set()
705 switch (filter->key_type) { in is1_entry_set()
1050 if (filter->key_type != OCELOT_VCAP_KEY_ETYPE) in ocelot_vcap_is_problematic_mac_etype()
1072 if (filter->key_type == OCELOT_VCAP_KEY_SNAP) in ocelot_vcap_is_problematic_non_mac_etype()
1074 if (filter->key_type == OCELOT_VCAP_KEY_ARP) in ocelot_vcap_is_problematic_non_mac_etype()
1076 if (filter->key_type == OCELOT_VCAP_KEY_IPV4) in ocelot_vcap_is_problematic_non_mac_etype()
1078 if (filter->key_type == OCELOT_VCAP_KEY_IPV6) in ocelot_vcap_is_problematic_non_mac_etype()
/drivers/crypto/ccree/
Dcc_cipher.c51 enum cc_key_type key_type; member
68 return ctx_p->key_type; in cc_key_type()
366 ctx_p->key_type = CC_HW_PROTECTED_KEY; in cc_cipher_sethkey()
388 ctx_p->key_type = CC_POLICY_PROTECTED_KEY; in cc_cipher_sethkey()
446 ctx_p->key_type = CC_UNPROTECTED_KEY; in cc_cipher_setkey()
522 if (ctx_p->key_type == CC_POLICY_PROTECTED_KEY) in cc_setup_readiv_desc()
806 bool last_desc = (ctx_p->key_type == CC_POLICY_PROTECTED_KEY || in cc_setup_flow_desc()
938 if (ctx_p->key_type == CC_POLICY_PROTECTED_KEY) { in cc_cipher_process()
/drivers/net/ethernet/netronome/nfp/flower/
Dmatch.c12 struct nfp_flower_meta_tci *msk, u8 key_type) in nfp_flower_compile_meta() argument
15 ext->nfp_flow_key_layer = key_type; in nfp_flower_compile_meta()
18 msk->nfp_flow_key_layer = key_type; in nfp_flower_compile_meta()
54 struct flow_rule *rule, u8 key_type, bool qinq_sup) in nfp_flower_compile_meta_tci() argument
59 nfp_flower_compile_meta(ext, msk, key_type); in nfp_flower_compile_meta_tci()
/drivers/net/wireless/ath/ath6kl/
Dcfg80211.c1136 u8 key_type; in ath6kl_cfg80211_add_key() local
1182 key_type = WEP_CRYPT; in ath6kl_cfg80211_add_key()
1186 key_type = TKIP_CRYPT; in ath6kl_cfg80211_add_key()
1190 key_type = AES_CRYPT; in ath6kl_cfg80211_add_key()
1193 key_type = WAPI_CRYPT; in ath6kl_cfg80211_add_key()
1207 __func__, key_index, key->key_len, key_type, in ath6kl_cfg80211_add_key()
1211 (key_type == TKIP_CRYPT || key_type == AES_CRYPT || in ath6kl_cfg80211_add_key()
1212 key_type == WAPI_CRYPT)) { in ath6kl_cfg80211_add_key()
1215 ar->ap_mode_bkey.key_type = key_type; in ath6kl_cfg80211_add_key()
1229 if (vif->next_mode == AP_NETWORK && key_type == WEP_CRYPT && in ath6kl_cfg80211_add_key()
[all …]
/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_nix.c3316 u32 key_type, valid_key; in set_flowkey_fields() local
3350 key_type = BIT(idx); in set_flowkey_fields()
3351 valid_key = flow_cfg & key_type; in set_flowkey_fields()
3358 switch (key_type) { in set_flowkey_fields()
3375 if (key_type == NIX_FLOW_KEY_TYPE_INNR_IPV4) { in set_flowkey_fields()
3388 if (key_type == NIX_FLOW_KEY_TYPE_INNR_IPV6) { in set_flowkey_fields()
3403 if (key_type == NIX_FLOW_KEY_TYPE_INNR_TCP || in set_flowkey_fields()
3404 key_type == NIX_FLOW_KEY_TYPE_INNR_UDP || in set_flowkey_fields()
3405 key_type == NIX_FLOW_KEY_TYPE_INNR_SCTP) in set_flowkey_fields()
3420 if ((key_type == NIX_FLOW_KEY_TYPE_TCP || in set_flowkey_fields()
[all …]
/drivers/media/platform/omap/
Domap_vout.c732 enum omap_dss_trans_key_type key_type = in vidioc_s_fmt_vid_overlay() local
747 key_type = OMAP_DSS_COLOR_KEY_VID_SRC; in vidioc_s_fmt_vid_overlay()
755 info.trans_key_type = key_type; in vidioc_s_fmt_vid_overlay()
1123 enum omap_dss_trans_key_type key_type = OMAP_DSS_COLOR_KEY_GFX_DST; in vidioc_s_fbuf() local
1141 key_type = OMAP_DSS_COLOR_KEY_VID_SRC; in vidioc_s_fbuf()
1147 key_type = OMAP_DSS_COLOR_KEY_GFX_DST; in vidioc_s_fbuf()
1161 info.trans_key_type = key_type; in vidioc_s_fbuf()

123