Lines Matching refs:aad
347 uint8_t b0[AES_BLOCK_LEN], uint8_t aad[2 * AES_BLOCK_LEN],
376 aad[0] = 0; /* AAD length >> 8 */
377 /* NB: aad[1] set below */
378 aad[2] = wh->i_fc[0] & 0x8f; /* XXX magic #s */
379 aad[3] = wh->i_fc[1] & 0xc7; /* XXX magic #s */
381 memcpy(aad + 4, wh->i_addr1, 3 * IEEE80211_ADDR_LEN);
382 aad[22] = wh->i_seq[0] & IEEE80211_SEQ_FRAG_MASK;
383 aad[23] = 0; /* all bits masked */
395 IEEE80211_ADDR_COPY(aad + 24,
400 aad[30] = qwh4->i_qos[0] & 0x0f;/* just priority bits */
401 aad[31] = 0;
402 b0[1] = aad[30];
403 aad[1] = 22 + IEEE80211_ADDR_LEN + 2;
405 *(uint16_t *)&aad[30] = 0;
407 aad[1] = 22 + IEEE80211_ADDR_LEN;
413 aad[24] = qwh->i_qos[0] & 0x0f; /* just priority bits */
414 aad[25] = 0;
415 b0[1] = aad[24];
416 aad[1] = 22 + 2;
418 *(uint16_t *)&aad[24] = 0;
420 aad[1] = 22;
422 *(uint16_t *)&aad[26] = 0;
423 *(uint32_t *)&aad[28] = 0;
428 xor_block(auth, aad, AES_BLOCK_LEN);
430 xor_block(auth, &aad[AES_BLOCK_LEN], AES_BLOCK_LEN);
456 uint8_t aad[2 * AES_BLOCK_LEN], b0[AES_BLOCK_LEN], b[AES_BLOCK_LEN],
465 data_len, b0, aad, b, s0);
600 uint8_t aad[2 * AES_BLOCK_LEN];
612 ccmp_init_blocks(&ctx->cc_aes, wh, pn, data_len, b0, aad, a, b);