Lines Matching refs:aad
95 const u8 *pn, u8 *iv, u8 *aad) in ccmp_init_iv_and_aad() argument
137 aad[0] = pos[0] & 0x8f; in ccmp_init_iv_and_aad()
138 aad[1] = pos[1] & 0xc7; in ccmp_init_iv_and_aad()
139 memcpy(aad + 2, hdr->addr1, 3 * ETH_ALEN); in ccmp_init_iv_and_aad()
141 aad[20] = pos[0] & 0x0f; in ccmp_init_iv_and_aad()
142 aad[21] = 0; /* all bits masked */ in ccmp_init_iv_and_aad()
143 memset(aad + 22, 0, 8); in ccmp_init_iv_and_aad()
145 memcpy(aad + 22, hdr->addr4, ETH_ALEN); in ccmp_init_iv_and_aad()
147 aad[a4_included ? 28 : 22] = qc; in ccmp_init_iv_and_aad()
196 u8 *aad = key->tx_aad; in lib80211_ccmp_encrypt() local
214 aad_len = ccmp_init_iv_and_aad(hdr, key->tx_pn, iv, aad); in lib80211_ccmp_encrypt()
219 sg_set_buf(&sg[0], aad, aad_len); in lib80211_ccmp_encrypt()
261 u8 *aad = key->rx_aad; in lib80211_ccmp_decrypt() local
317 aad_len = ccmp_init_iv_and_aad(hdr, pn, iv, aad); in lib80211_ccmp_decrypt()
320 sg_set_buf(&sg[0], aad, aad_len); in lib80211_ccmp_decrypt()