Lines Matching refs:iv
95 const u8 *pn, u8 *iv, u8 *aad) in ccmp_init_iv_and_aad() argument
122 iv[0] = 0x1; in ccmp_init_iv_and_aad()
125 iv[1] = qc; in ccmp_init_iv_and_aad()
126 memcpy(iv + 2, hdr->addr2, ETH_ALEN); in ccmp_init_iv_and_aad()
127 memcpy(iv + 8, pn, CCMP_PN_LEN); in ccmp_init_iv_and_aad()
197 u8 iv[AES_BLOCK_LEN]; in lib80211_ccmp_encrypt() local
214 aad_len = ccmp_init_iv_and_aad(hdr, key->tx_pn, iv, aad); in lib80211_ccmp_encrypt()
225 aead_request_set_crypt(req, sg, sg, data_len, iv); in lib80211_ccmp_encrypt()
262 u8 iv[AES_BLOCK_LEN]; in lib80211_ccmp_decrypt() local
317 aad_len = ccmp_init_iv_and_aad(hdr, pn, iv, aad); in lib80211_ccmp_decrypt()
325 aead_request_set_crypt(req, sg, sg, data_len, iv); in lib80211_ccmp_decrypt()