• Home
  • Raw
  • Download

Lines Matching refs:aad

315 static void ccmp_special_blocks(struct sk_buff *skb, u8 *pn, u8 *b_0, u8 *aad)  in ccmp_special_blocks()  argument
363 put_unaligned_be16(len_a, &aad[0]); in ccmp_special_blocks()
364 put_unaligned(mask_fc, (__le16 *)&aad[2]); in ccmp_special_blocks()
365 memcpy(&aad[4], &hdr->addr1, 3 * ETH_ALEN); in ccmp_special_blocks()
368 aad[22] = *((u8 *) &hdr->seq_ctrl) & 0x0f; in ccmp_special_blocks()
369 aad[23] = 0; in ccmp_special_blocks()
372 memcpy(&aad[24], hdr->addr4, ETH_ALEN); in ccmp_special_blocks()
373 aad[30] = qos_tid; in ccmp_special_blocks()
374 aad[31] = 0; in ccmp_special_blocks()
376 memset(&aad[24], 0, ETH_ALEN + IEEE80211_QOS_CTL_LEN); in ccmp_special_blocks()
377 aad[24] = qos_tid; in ccmp_special_blocks()
416 u8 aad[CCM_AAD_LEN]; in ccmp_encrypt_skb() local
471 ccmp_special_blocks(skb, pn, b_0, aad); in ccmp_encrypt_skb()
472 return ieee80211_aes_ccm_encrypt(key->u.ccmp.tfm, b_0, aad, pos, len, in ccmp_encrypt_skb()
546 u8 aad[2 * AES_BLOCK_SIZE]; in ieee80211_crypto_ccmp_decrypt() local
549 ccmp_special_blocks(skb, pn, b_0, aad); in ieee80211_crypto_ccmp_decrypt()
552 key->u.ccmp.tfm, b_0, aad, in ieee80211_crypto_ccmp_decrypt()
573 static void gcmp_special_blocks(struct sk_buff *skb, u8 *pn, u8 *j_0, u8 *aad) in gcmp_special_blocks() argument
588 put_unaligned_be16(ieee80211_hdrlen(hdr->frame_control) - 2, &aad[0]); in gcmp_special_blocks()
599 put_unaligned(mask_fc, (__le16 *)&aad[2]); in gcmp_special_blocks()
600 memcpy(&aad[4], &hdr->addr1, 3 * ETH_ALEN); in gcmp_special_blocks()
603 aad[22] = *((u8 *)&hdr->seq_ctrl) & 0x0f; in gcmp_special_blocks()
604 aad[23] = 0; in gcmp_special_blocks()
612 memcpy(&aad[24], hdr->addr4, ETH_ALEN); in gcmp_special_blocks()
613 aad[30] = qos_tid; in gcmp_special_blocks()
614 aad[31] = 0; in gcmp_special_blocks()
616 memset(&aad[24], 0, ETH_ALEN + IEEE80211_QOS_CTL_LEN); in gcmp_special_blocks()
617 aad[24] = qos_tid; in gcmp_special_blocks()
652 u8 aad[GCM_AAD_LEN]; in gcmp_encrypt_skb() local
708 gcmp_special_blocks(skb, pn, j_0, aad); in gcmp_encrypt_skb()
709 return ieee80211_aes_gcm_encrypt(key->u.gcmp.tfm, j_0, aad, pos, len, in gcmp_encrypt_skb()
778 u8 aad[2 * AES_BLOCK_SIZE]; in ieee80211_crypto_gcmp_decrypt() local
781 gcmp_special_blocks(skb, pn, j_0, aad); in ieee80211_crypto_gcmp_decrypt()
784 key->u.gcmp.tfm, j_0, aad, in ieee80211_crypto_gcmp_decrypt()
904 static void bip_aad(struct sk_buff *skb, u8 *aad) in bip_aad() argument
916 put_unaligned(mask_fc, (__le16 *) &aad[0]); in bip_aad()
918 memcpy(aad + 2, &hdr->addr1, 3 * ETH_ALEN); in bip_aad()
950 u8 aad[20]; in ieee80211_crypto_aes_cmac_encrypt() local
980 bip_aad(skb, aad); in ieee80211_crypto_aes_cmac_encrypt()
985 ieee80211_aes_cmac(key->u.aes_cmac.tfm, aad, in ieee80211_crypto_aes_cmac_encrypt()
998 u8 aad[20]; in ieee80211_crypto_aes_cmac_256_encrypt() local
1024 bip_aad(skb, aad); in ieee80211_crypto_aes_cmac_256_encrypt()
1028 ieee80211_aes_cmac_256(key->u.aes_cmac.tfm, aad, in ieee80211_crypto_aes_cmac_256_encrypt()
1041 u8 aad[20], mic[8], ipn[6]; in ieee80211_crypto_aes_cmac_decrypt() local
1067 bip_aad(skb, aad); in ieee80211_crypto_aes_cmac_decrypt()
1068 ieee80211_aes_cmac(key->u.aes_cmac.tfm, aad, in ieee80211_crypto_aes_cmac_decrypt()
1091 u8 aad[20], mic[16], ipn[6]; in ieee80211_crypto_aes_cmac_256_decrypt() local
1117 bip_aad(skb, aad); in ieee80211_crypto_aes_cmac_256_decrypt()
1118 ieee80211_aes_cmac_256(key->u.aes_cmac.tfm, aad, in ieee80211_crypto_aes_cmac_256_decrypt()
1142 u8 aad[GMAC_AAD_LEN]; in ieee80211_crypto_aes_gmac_encrypt() local
1169 bip_aad(skb, aad); in ieee80211_crypto_aes_gmac_encrypt()
1176 if (ieee80211_aes_gmac(key->u.aes_gmac.tfm, aad, nonce, in ieee80211_crypto_aes_gmac_encrypt()
1190 u8 aad[GMAC_AAD_LEN], *mic, ipn[6], nonce[GMAC_NONCE_LEN]; in ieee80211_crypto_aes_gmac_decrypt() local
1216 bip_aad(skb, aad); in ieee80211_crypto_aes_gmac_decrypt()
1224 if (ieee80211_aes_gmac(key->u.aes_gmac.tfm, aad, nonce, in ieee80211_crypto_aes_gmac_decrypt()