Searched refs:klen (Results 1 – 9 of 9) sorted by relevance
/net/wireless/ |
D | lib80211_crypt_wep.c | 95 u32 klen; in lib80211_wep_build_iv() local 105 klen = 3 + wep->key_len; in lib80211_wep_build_iv() 114 if (B >= 3 && B < klen) in lib80211_wep_build_iv() 137 u32 crc, klen, len; in lib80211_wep_encrypt() local 158 klen = 3 + wep->key_len; in lib80211_wep_encrypt() 168 crypto_blkcipher_setkey(wep->tx_tfm, key, klen); in lib80211_wep_encrypt() 184 u32 crc, klen, plen; in lib80211_wep_decrypt() local 200 klen = 3 + wep->key_len; in lib80211_wep_decrypt() 208 crypto_blkcipher_setkey(wep->rx_tfm, key, klen); in lib80211_wep_decrypt()
|
/net/mac80211/ |
D | wep.c | 137 size_t klen, u8 *data, size_t data_len) in ieee80211_wep_encrypt_data() argument 148 crypto_cipher_setkey(tfm, rc4key, klen); in ieee80211_wep_encrypt_data() 198 size_t klen, u8 *data, size_t data_len) in ieee80211_wep_decrypt_data() argument 206 crypto_cipher_setkey(tfm, rc4key, klen); in ieee80211_wep_decrypt_data() 231 u32 klen; in ieee80211_wep_decrypt() local 253 klen = 3 + key->conf.keylen; in ieee80211_wep_decrypt() 261 if (ieee80211_wep_decrypt_data(local->wep_rx_tfm, rc4key, klen, in ieee80211_wep_decrypt()
|
D | wep.h | 22 size_t klen, u8 *data, size_t data_len); 27 size_t klen, u8 *data, size_t data_len);
|
/net/ |
D | compat.c | 666 int klen, ulen, err; in compat_mc_getsockopt() local 677 klen = ulen + sizeof(*kgf) - sizeof(*gf32); in compat_mc_getsockopt() 679 if (klen < GROUP_FILTER_SIZE(0)) in compat_mc_getsockopt() 683 __put_user(klen, koptlen)) in compat_mc_getsockopt() 687 kgf = compat_alloc_user_space(klen+sizeof(*optlen)); in compat_mc_getsockopt() 704 __get_user(klen, koptlen)) in compat_mc_getsockopt() 707 ulen = klen - (sizeof(*kgf)-sizeof(*gf32)); in compat_mc_getsockopt() 713 if (!access_ok(VERIFY_READ, kgf, klen) || in compat_mc_getsockopt() 725 klen -= GROUP_FILTER_SIZE(0); in compat_mc_getsockopt() 727 if (copylen > klen) in compat_mc_getsockopt() [all …]
|
D | socket.c | 220 static int move_addr_to_user(struct sockaddr_storage *kaddr, int klen, in move_addr_to_user() argument 226 BUG_ON(klen > sizeof(struct sockaddr_storage)); in move_addr_to_user() 230 if (len > klen) in move_addr_to_user() 231 len = klen; in move_addr_to_user() 235 if (audit_sockaddr(klen, kaddr)) in move_addr_to_user() 244 return __put_user(klen, ulen); in move_addr_to_user()
|
/net/netfilter/ |
D | nft_hash.c | 105 h = rhashtable_hashfn(priv, &elem->key, set->klen); in nft_hash_get() 108 if (nft_data_cmp(&he->key, &elem->key, set->klen)) { in nft_hash_get() 170 .key_len = set->klen, in nft_hash_init()
|
D | nft_rbtree.c | 47 d = nft_data_cmp(&rbe->key, key, set->klen); in nft_rbtree_lookup() 98 d = nft_data_cmp(&rbe->key, &new->key, set->klen); in __nft_rbtree_insert() 165 d = nft_data_cmp(&rbe->key, &elem->key, set->klen); in nft_rbtree_get()
|
D | nf_tables_api.c | 2345 if (nla_put_be32(skb, NFTA_SET_KEY_LEN, htonl(set->klen))) in nf_tables_fill_set() 2584 desc.klen = ntohl(nla_get_be32(nla[NFTA_SET_KEY_LEN])); in nf_tables_newset() 2585 if (desc.klen == 0 || desc.klen > FIELD_SIZEOF(struct nft_data, data)) in nf_tables_newset() 2679 set->klen = desc.klen; in nf_tables_newset() 2863 set->klen) < 0) in nf_tables_fill_setelem() 3140 if (d1.type != NFT_DATA_VALUE || d1.len != set->klen) in nft_add_set_elem() 3257 if (desc.type != NFT_DATA_VALUE || desc.len != set->klen) in nft_del_setelem()
|
/net/xfrm/ |
D | xfrm_user.c | 407 int klen, ulen; in xfrm_alloc_replay_state_esn() local 413 klen = xfrm_replay_state_esn_len(up); in xfrm_alloc_replay_state_esn() 414 ulen = nla_len(rta) >= klen ? klen : sizeof(*up); in xfrm_alloc_replay_state_esn() 416 p = kzalloc(klen, GFP_KERNEL); in xfrm_alloc_replay_state_esn() 420 pp = kzalloc(klen, GFP_KERNEL); in xfrm_alloc_replay_state_esn()
|