Lines Matching refs:data
237 pos = skb->data + hdr_len + CCMP_HDR_LEN; in lib80211_ccmp_encrypt()
238 hdr = (struct ieee80211_hdr *)skb->data; in lib80211_ccmp_encrypt()
296 u8 *mic = skb->data + skb->len - CCMP_MIC_LEN; in lib80211_ccmp_decrypt()
303 hdr = (struct ieee80211_hdr *)skb->data; in lib80211_ccmp_decrypt()
304 pos = skb->data + hdr_len; in lib80211_ccmp_decrypt()
373 memmove(skb->data + CCMP_HDR_LEN, skb->data, hdr_len); in lib80211_ccmp_decrypt()
382 struct lib80211_ccmp_data *data = priv; in lib80211_ccmp_set_key() local
384 struct crypto_cipher *tfm = data->tfm; in lib80211_ccmp_set_key()
386 keyidx = data->key_idx; in lib80211_ccmp_set_key()
387 memset(data, 0, sizeof(*data)); in lib80211_ccmp_set_key()
388 data->key_idx = keyidx; in lib80211_ccmp_set_key()
389 data->tfm = tfm; in lib80211_ccmp_set_key()
391 memcpy(data->key, key, CCMP_TK_LEN); in lib80211_ccmp_set_key()
392 data->key_set = 1; in lib80211_ccmp_set_key()
394 data->rx_pn[0] = seq[5]; in lib80211_ccmp_set_key()
395 data->rx_pn[1] = seq[4]; in lib80211_ccmp_set_key()
396 data->rx_pn[2] = seq[3]; in lib80211_ccmp_set_key()
397 data->rx_pn[3] = seq[2]; in lib80211_ccmp_set_key()
398 data->rx_pn[4] = seq[1]; in lib80211_ccmp_set_key()
399 data->rx_pn[5] = seq[0]; in lib80211_ccmp_set_key()
401 crypto_cipher_setkey(data->tfm, data->key, CCMP_TK_LEN); in lib80211_ccmp_set_key()
403 data->key_set = 0; in lib80211_ccmp_set_key()
412 struct lib80211_ccmp_data *data = priv; in lib80211_ccmp_get_key() local
417 if (!data->key_set) in lib80211_ccmp_get_key()
419 memcpy(key, data->key, CCMP_TK_LEN); in lib80211_ccmp_get_key()
422 seq[0] = data->tx_pn[5]; in lib80211_ccmp_get_key()
423 seq[1] = data->tx_pn[4]; in lib80211_ccmp_get_key()
424 seq[2] = data->tx_pn[3]; in lib80211_ccmp_get_key()
425 seq[3] = data->tx_pn[2]; in lib80211_ccmp_get_key()
426 seq[4] = data->tx_pn[1]; in lib80211_ccmp_get_key()
427 seq[5] = data->tx_pn[0]; in lib80211_ccmp_get_key()