/net/wireless/ |
D | lib80211_crypt_wep.c | 36 u8 key_len; member 110 klen = 3 + wep->key_len; in lib80211_wep_build_iv() 159 memcpy(key + 3, wep->key, wep->key_len); in lib80211_wep_encrypt() 163 klen = 3 + wep->key_len; in lib80211_wep_encrypt() 205 klen = 3 + wep->key_len; in lib80211_wep_decrypt() 208 memcpy(key + 3, wep->key, wep->key_len); in lib80211_wep_decrypt() 244 wep->key_len = len; in lib80211_wep_set_key() 253 if (len < wep->key_len) in lib80211_wep_get_key() 256 memcpy(key, wep->key, wep->key_len); in lib80211_wep_get_key() 258 return wep->key_len; in lib80211_wep_get_key() [all …]
|
D | nl80211.c | 710 params->key_len, params->key); in get_key_callback() 855 params.key_len = nla_len(info->attrs[NL80211_ATTR_KEY_DATA]); in nl80211_new_key() 882 if (params.key_len != 5) in nl80211_new_key() 886 if (params.key_len != 32) in nl80211_new_key() 890 if (params.key_len != 16) in nl80211_new_key() 894 if (params.key_len != 13) in nl80211_new_key()
|
/net/core/ |
D | neighbour.c | 363 int key_len = tbl->key_len; in neigh_lookup() local 371 if (dev == n->dev && !memcmp(n->primary_key, pkey, key_len)) { in neigh_lookup() 386 int key_len = tbl->key_len; in neigh_lookup_nodev() local 394 if (!memcmp(n->primary_key, pkey, key_len) && in neigh_lookup_nodev() 410 int key_len = tbl->key_len; in neigh_create() local 419 memcpy(n->primary_key, pkey, key_len); in neigh_create() 451 if (dev == n1->dev && !memcmp(n1->primary_key, pkey, key_len)) { in neigh_create() 475 static u32 pneigh_hash(const void *pkey, int key_len) in pneigh_hash() argument 477 u32 hash_val = *(u32 *)(pkey + key_len - 4); in pneigh_hash() 488 int key_len, in __pneigh_lookup_1() argument [all …]
|
/net/mac80211/ |
D | key.c | 261 size_t key_len, in ieee80211_key_alloc() argument 268 key = kzalloc(sizeof(struct ieee80211_key) + key_len, GFP_KERNEL); in ieee80211_key_alloc() 281 key->conf.keylen = key_len; in ieee80211_key_alloc() 296 memcpy(key->conf.key, key_data, key_len); in ieee80211_key_alloc()
|
D | key.h | 132 size_t key_len,
|
D | wext.c | 33 size_t key_len) in ieee80211_set_encryption() argument 64 key = ieee80211_key_alloc(alg, idx, key_len, _key); in ieee80211_set_encryption() 96 key_len != LEN_WEP40 && key_len != LEN_WEP104) { in ieee80211_set_encryption() 1047 ext->key, ext->key_len); in ieee80211_ioctl_siwencodeext()
|
D | cfg.c | 140 key = ieee80211_key_alloc(alg, key_idx, params->key_len, params->key); in ieee80211_add_key() 281 params.key_len = key->conf.keylen; in ieee80211_get_key()
|
/net/ipv4/ |
D | cipso_ipv4.c | 78 size_t key_len; member 231 static u32 cipso_v4_map_cache_hash(const unsigned char *key, u32 key_len) in cipso_v4_map_cache_hash() argument 233 return jhash(key, key_len, 0); in cipso_v4_map_cache_hash() 319 u32 key_len, in cipso_v4_cache_check() argument 330 hash = cipso_v4_map_cache_hash(key, key_len); in cipso_v4_cache_check() 335 entry->key_len == key_len && in cipso_v4_cache_check() 336 memcmp(entry->key, key, key_len) == 0) { in cipso_v4_cache_check() 405 entry->key_len = cipso_ptr_len; in cipso_v4_cache_add()
|
D | arp.c | 174 .key_len = 4,
|
/net/sctp/ |
D | auth.c | 79 static struct sctp_auth_bytes *sctp_auth_create_key(__u32 key_len, gfp_t gfp) in sctp_auth_create_key() argument 84 if ((INT_MAX - key_len) < sizeof(struct sctp_auth_bytes)) in sctp_auth_create_key() 88 key = kmalloc(sizeof(struct sctp_auth_bytes) + key_len, gfp); in sctp_auth_create_key() 92 key->len = key_len; in sctp_auth_create_key()
|
/net/irda/irlan/ |
D | irlan_client.c | 517 self->client.key_len = val_len; in irlan_check_response_param()
|
/net/sched/ |
D | sch_teql.c | 232 memcmp(n->primary_key, mn->primary_key, mn->tbl->key_len) == 0) { in __teql_resolve()
|
/net/decnet/ |
D | dn_neigh.c | 98 .key_len = sizeof(__le16),
|
/net/atm/ |
D | clip.c | 321 .key_len = 4,
|
/net/ipv6/ |
D | ndisc.c | 133 .key_len = sizeof(struct in6_addr),
|