Lines Matching refs:aad

345 	uint8_t b0[AES_BLOCK_LEN], uint8_t aad[2 * AES_BLOCK_LEN],  in ccmp_init_blocks()
374 aad[0] = 0; /* AAD length >> 8 */ in ccmp_init_blocks()
376 aad[2] = wh->i_fc[0] & 0x8f; /* XXX magic #s */ in ccmp_init_blocks()
377 aad[3] = wh->i_fc[1] & 0xc7; /* XXX magic #s */ in ccmp_init_blocks()
379 memcpy(aad + 4, wh->i_addr1, 3 * IEEE80211_ADDR_LEN); in ccmp_init_blocks()
380 aad[22] = wh->i_seq[0] & IEEE80211_SEQ_FRAG_MASK; in ccmp_init_blocks()
381 aad[23] = 0; /* all bits masked */ in ccmp_init_blocks()
393 IEEE80211_ADDR_COPY(aad + 24, in ccmp_init_blocks()
398 aad[30] = qwh4->i_qos[0] & 0x0f;/* just priority bits */ in ccmp_init_blocks()
399 aad[31] = 0; in ccmp_init_blocks()
400 b0[1] = aad[30]; in ccmp_init_blocks()
401 aad[1] = 22 + IEEE80211_ADDR_LEN + 2; in ccmp_init_blocks()
403 *(uint16_t *)&aad[30] = 0; in ccmp_init_blocks()
405 aad[1] = 22 + IEEE80211_ADDR_LEN; in ccmp_init_blocks()
411 aad[24] = qwh->i_qos[0] & 0x0f; /* just priority bits */ in ccmp_init_blocks()
412 aad[25] = 0; in ccmp_init_blocks()
413 b0[1] = aad[24]; in ccmp_init_blocks()
414 aad[1] = 22 + 2; in ccmp_init_blocks()
416 *(uint16_t *)&aad[24] = 0; in ccmp_init_blocks()
418 aad[1] = 22; in ccmp_init_blocks()
420 *(uint16_t *)&aad[26] = 0; in ccmp_init_blocks()
421 *(uint32_t *)&aad[28] = 0; in ccmp_init_blocks()
426 xor_block(auth, aad, AES_BLOCK_LEN); in ccmp_init_blocks()
428 xor_block(auth, &aad[AES_BLOCK_LEN], AES_BLOCK_LEN); in ccmp_init_blocks()
454 uint8_t aad[2 * AES_BLOCK_LEN], b0[AES_BLOCK_LEN], b[AES_BLOCK_LEN], in ccmp_encrypt() local
463 data_len, b0, aad, b, s0); in ccmp_encrypt()
598 uint8_t aad[2 * AES_BLOCK_LEN]; in ccmp_decrypt() local
610 ccmp_init_blocks(&ctx->cc_aes, wh, pn, data_len, b0, aad, a, b); in ccmp_decrypt()