Lines Matching refs:aad
261 const void *aad, void *mic ) in ccmp_cbc_mac() argument
280 memcpy ( B + 2, aad, 14 ); in ccmp_cbc_mac()
285 memcpy ( B, aad + 14, 8 ); in ccmp_cbc_mac()
328 struct ccmp_aad aad; in ccmp_encrypt() local
358 aad.fc = hdr->fc & CCMP_AAD_FC_MASK; in ccmp_encrypt()
359 memcpy ( aad.a1, hdr->addr1, 3 * ETH_ALEN ); /* all 3 at once */ in ccmp_encrypt()
360 aad.seq = hdr->seq & CCMP_AAD_SEQ_MASK; in ccmp_encrypt()
363 ccmp_cbc_mac ( ctx, &nonce, iob->data + hdrlen, datalen, &aad, mic ); in ccmp_encrypt()
396 struct ccmp_aad aad; in ccmp_decrypt() local
430 aad.fc = ( hdr->fc & CCMP_AAD_FC_MASK ) | IEEE80211_FC_PROTECTED; in ccmp_decrypt()
431 memcpy ( aad.a1, hdr->addr1, 3 * ETH_ALEN ); /* all 3 at once */ in ccmp_decrypt()
432 aad.seq = hdr->seq & CCMP_AAD_SEQ_MASK; in ccmp_decrypt()
440 ccmp_cbc_mac ( ctx, &nonce, iob->data + hdrlen, datalen, &aad, in ccmp_decrypt()