/net/wireless/ |
D | lib80211_crypt_wep.c | 33 u8 key_len; member 77 klen = 3 + wep->key_len; in lib80211_wep_build_iv() 124 memcpy(key + 3, wep->key, wep->key_len); in lib80211_wep_encrypt() 128 klen = 3 + wep->key_len; in lib80211_wep_encrypt() 169 klen = 3 + wep->key_len; in lib80211_wep_decrypt() 172 memcpy(key + 3, wep->key, wep->key_len); in lib80211_wep_decrypt() 206 wep->key_len = len; in lib80211_wep_set_key() 215 if (len < wep->key_len) in lib80211_wep_get_key() 218 memcpy(key, wep->key, wep->key_len); in lib80211_wep_get_key() 220 return wep->key_len; in lib80211_wep_get_key() [all …]
|
D | util.c | 382 if (params->key_len != WLAN_KEY_LEN_WEP40) in cfg80211_validate_key_settings() 386 if (params->key_len != WLAN_KEY_LEN_TKIP) in cfg80211_validate_key_settings() 390 if (params->key_len != WLAN_KEY_LEN_CCMP) in cfg80211_validate_key_settings() 394 if (params->key_len != WLAN_KEY_LEN_CCMP_256) in cfg80211_validate_key_settings() 398 if (params->key_len != WLAN_KEY_LEN_GCMP) in cfg80211_validate_key_settings() 402 if (params->key_len != WLAN_KEY_LEN_GCMP_256) in cfg80211_validate_key_settings() 406 if (params->key_len != WLAN_KEY_LEN_WEP104) in cfg80211_validate_key_settings() 410 if (params->key_len != WLAN_KEY_LEN_AES_CMAC) in cfg80211_validate_key_settings() 414 if (params->key_len != WLAN_KEY_LEN_BIP_CMAC_256) in cfg80211_validate_key_settings() 418 if (params->key_len != WLAN_KEY_LEN_BIP_GMAC_128) in cfg80211_validate_key_settings() [all …]
|
D | wext-compat.c | 487 wdev->wext.keys->params[idx].key_len = 0; in __cfg80211_set_encryption() 528 params->key, params->key_len); in __cfg80211_set_encryption() 646 params.key_len = erq->length; in cfg80211_wext_siwencode() 702 if (ext->key_len == 5) in cfg80211_wext_siwencodeext() 704 else if (ext->key_len == 13) in cfg80211_wext_siwencodeext() 748 params.key_len = ext->key_len; in cfg80211_wext_siwencodeext() 798 wdev->wext.keys->params[idx].key_len); in cfg80211_wext_giwencode()
|
D | sme.c | 172 auth_req.key_len = params->key_len; in cfg80211_conn_do_work() 1479 connect->key_len = connkeys->params[idx].key_len; in cfg80211_connect() 1504 connect->key_len = 0; in cfg80211_connect()
|
/net/mac80211/ |
D | fils_aead.c | 66 static int aes_siv_encrypt(const u8 *key, size_t key_len, in aes_siv_encrypt() argument 79 key_len /= 2; /* S2V key || CTR key */ in aes_siv_encrypt() 91 res = crypto_shash_setkey(tfm, key, key_len); in aes_siv_encrypt() 122 res = crypto_skcipher_setkey(tfm2, key + key_len, key_len); in aes_siv_encrypt() 144 static int aes_siv_decrypt(const u8 *key, size_t key_len, in aes_siv_decrypt() argument 159 key_len /= 2; /* S2V key || CTR key */ in aes_siv_decrypt() 179 res = crypto_skcipher_setkey(tfm2, key + key_len, key_len); in aes_siv_decrypt() 206 res = crypto_shash_setkey(tfm, key, key_len); in aes_siv_decrypt()
|
D | aes_ccm.h | 15 ieee80211_aes_key_setup_encrypt(const u8 key[], size_t key_len, size_t mic_len) in ieee80211_aes_key_setup_encrypt() argument 17 return aead_key_setup_encrypt("ccm(aes)", key, key_len, mic_len); in ieee80211_aes_key_setup_encrypt()
|
D | aes_gcm.h | 32 ieee80211_aes_gcm_key_setup_encrypt(const u8 key[], size_t key_len) in ieee80211_aes_gcm_key_setup_encrypt() argument 35 key_len, IEEE80211_GCMP_MIC_LEN); in ieee80211_aes_gcm_key_setup_encrypt()
|
D | aes_cmac.c | 72 size_t key_len) in ieee80211_aes_cmac_key_setup() argument 78 int err = crypto_shash_setkey(tfm, key, key_len); in ieee80211_aes_cmac_key_setup()
|
D | aes_gmac.c | 70 size_t key_len) in ieee80211_aes_gmac_key_setup() argument 79 err = crypto_aead_setkey(tfm, key, key_len); in ieee80211_aes_gmac_key_setup()
|
D | key.c | 532 ieee80211_key_alloc(u32 cipher, int idx, size_t key_len, in ieee80211_key_alloc() argument 545 key = kzalloc(sizeof(struct ieee80211_key) + key_len, GFP_KERNEL); in ieee80211_key_alloc() 558 key->conf.keylen = key_len; in ieee80211_key_alloc() 592 key_data, key_len, IEEE80211_CCMP_MIC_LEN); in ieee80211_key_alloc() 610 key_data, key_len, IEEE80211_CCMP_256_MIC_LEN); in ieee80211_key_alloc() 633 ieee80211_aes_cmac_key_setup(key_data, key_len); in ieee80211_key_alloc() 652 ieee80211_aes_gmac_key_setup(key_data, key_len); in ieee80211_key_alloc() 671 key_len); in ieee80211_key_alloc() 694 memcpy(key->conf.key, key_data, key_len); in ieee80211_key_alloc()
|
D | aead_api.c | 87 size_t key_len, size_t mic_len) in aead_key_setup_encrypt() argument 96 err = crypto_aead_setkey(tfm, key, key_len); in aead_key_setup_encrypt()
|
D | aes_gmac.h | 16 size_t key_len);
|
D | aes_cmac.h | 13 size_t key_len);
|
D | aead_api.h | 11 size_t key_len, size_t mic_len);
|
D | key.h | 141 ieee80211_key_alloc(u32 cipher, int idx, size_t key_len,
|
/net/ipv6/ |
D | calipso.c | 76 size_t key_len; member 118 static u32 calipso_map_cache_hash(const unsigned char *key, u32 key_len) in calipso_map_cache_hash() argument 120 return jhash(key, key_len, 0); in calipso_map_cache_hash() 200 u32 key_len, in calipso_cache_check() argument 211 hash = calipso_map_cache_hash(key, key_len); in calipso_cache_check() 216 entry->key_len == key_len && in calipso_cache_check() 217 memcmp(entry->key, key, key_len) == 0) { in calipso_cache_check() 286 entry->key_len = calipso_ptr_len; in calipso_cache_add()
|
D | seg6_hmac.c | 68 .key_len = sizeof(u32),
|
D | ioam6.c | 62 .key_len = sizeof(__be16), 70 .key_len = sizeof(u32),
|
/net/core/ |
D | neighbour.c | 586 u32 hash_val, key_len = tbl->key_len; in ___neigh_create() local 598 memcpy(n->primary_key, pkey, key_len); in ___neigh_create() 644 if (dev == n1->dev && !memcmp(n1->primary_key, n->primary_key, key_len)) { in ___neigh_create() 683 static u32 pneigh_hash(const void *pkey, unsigned int key_len) in pneigh_hash() argument 685 u32 hash_val = *(u32 *)(pkey + key_len - 4); in pneigh_hash() 696 unsigned int key_len, in __pneigh_lookup_1() argument 700 if (!memcmp(n->key, pkey, key_len) && in __pneigh_lookup_1() 712 unsigned int key_len = tbl->key_len; in __pneigh_lookup() local 713 u32 hash_val = pneigh_hash(pkey, key_len); in __pneigh_lookup() 716 net, pkey, key_len, dev); in __pneigh_lookup() [all …]
|
/net/ipv4/ |
D | cipso_ipv4.c | 65 size_t key_len; member 149 static u32 cipso_v4_map_cache_hash(const unsigned char *key, u32 key_len) in cipso_v4_map_cache_hash() argument 151 return jhash(key, key_len, 0); in cipso_v4_map_cache_hash() 234 u32 key_len, in cipso_v4_cache_check() argument 245 hash = cipso_v4_map_cache_hash(key, key_len); in cipso_v4_cache_check() 250 entry->key_len == key_len && in cipso_v4_cache_check() 251 memcmp(entry->key, key, key_len) == 0) { in cipso_v4_cache_check() 319 entry->key_len = cipso_ptr_len; in cipso_v4_cache_add()
|
/net/sctp/ |
D | auth.c | 58 static struct sctp_auth_bytes *sctp_auth_create_key(__u32 key_len, gfp_t gfp) in sctp_auth_create_key() argument 63 if (key_len > (INT_MAX - sizeof(struct sctp_auth_bytes))) in sctp_auth_create_key() 67 key = kmalloc(sizeof(struct sctp_auth_bytes) + key_len, gfp); in sctp_auth_create_key() 71 key->len = key_len; in sctp_auth_create_key()
|
/net/openvswitch/ |
D | flow_netlink.c | 2844 size_t key_len; in validate_set() local 2850 key_len = nla_len(ovs_key); in validate_set() 2852 key_len /= 2; in validate_set() 2855 !check_attr_len(key_len, ovs_key_lens[key_type].len)) in validate_set() 2858 if (masked && !validate_masked(nla_data(ovs_key), key_len)) in validate_set() 2980 int start, len = key_len * 2; in validate_set() 2995 memcpy(nla_data(at), nla_data(ovs_key), key_len); /* Key. */ in validate_set() 2996 memset(nla_data(at) + key_len, 0xff, key_len); /* Mask. */ in validate_set() 2999 struct ovs_key_ipv6 *mask = nla_data(at) + key_len; in validate_set() 3696 size_t key_len = nla_len(ovs_key) / 2; in masked_set_action_to_set_action_attr() local [all …]
|
/net/bridge/ |
D | br_vlan_tunnel.c | 31 .key_len = sizeof(__be64),
|
/net/bluetooth/ |
D | amp.c | 452 if (phylink_gen_key(mgr->l2cap_conn->hcon, cp.key, &cp.key_len, in amp_create_phylink() 491 if (phylink_gen_key(mgr->l2cap_conn->hcon, cp.key, &cp.key_len, in amp_accept_phylink()
|
/net/rds/ |
D | bind.c | 46 .key_len = RDS_BOUND_KEY_LEN,
|