Home
last modified time | relevance | path

Searched refs:aad (Results 1 – 12 of 12) sorted by relevance

/net/mac80211/
Dwpa.c315 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()
[all …]
Daes_gcm.h14 u8 *j_0, u8 *aad, u8 *data, in ieee80211_aes_gcm_encrypt() argument
17 return aead_encrypt(tfm, j_0, aad + 2, in ieee80211_aes_gcm_encrypt()
18 be16_to_cpup((__be16 *)aad), in ieee80211_aes_gcm_encrypt()
23 u8 *j_0, u8 *aad, u8 *data, in ieee80211_aes_gcm_decrypt() argument
26 return aead_decrypt(tfm, j_0, aad + 2, in ieee80211_aes_gcm_decrypt()
27 be16_to_cpup((__be16 *)aad), in ieee80211_aes_gcm_decrypt()
Daes_ccm.h22 u8 *b_0, u8 *aad, u8 *data, in ieee80211_aes_ccm_encrypt() argument
25 return aead_encrypt(tfm, b_0, aad + 2, in ieee80211_aes_ccm_encrypt()
26 be16_to_cpup((__be16 *)aad), in ieee80211_aes_ccm_encrypt()
32 u8 *b_0, u8 *aad, u8 *data, in ieee80211_aes_ccm_decrypt() argument
35 return aead_decrypt(tfm, b_0, aad + 2, in ieee80211_aes_ccm_decrypt()
36 be16_to_cpup((__be16 *)aad), in ieee80211_aes_ccm_decrypt()
Daes_cmac.c24 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac() argument
33 crypto_shash_update(desc, aad, AAD_LEN); in ieee80211_aes_cmac()
40 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad, in ieee80211_aes_cmac_256() argument
48 crypto_shash_update(desc, aad, AAD_LEN); in ieee80211_aes_cmac_256()
Daead_api.c18 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_encrypt() argument
32 memcpy(__aad, aad, aad_len); in aead_encrypt()
49 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_decrypt() argument
67 memcpy(__aad, aad, aad_len); in aead_decrypt()
Daes_cmac.h14 void ieee80211_aes_cmac(struct crypto_shash *tfm, const u8 *aad,
16 void ieee80211_aes_cmac_256(struct crypto_shash *tfm, const u8 *aad,
Daead_api.h13 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad,
17 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad,
Daes_gmac.c17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac() argument
34 memcpy(__aad, aad, GMAC_AAD_LEN); in ieee80211_aes_gmac()
Daes_gmac.h17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce,
/net/wireless/
Dlib80211_crypt_ccmp.c95 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
[all …]
/net/tls/
Dtls_device_fallback.c49 struct crypto_aead *aead, char *aad, in tls_enc_record() argument
75 tls_make_aad(aad, len - TLS_CIPHER_AES_GCM_128_TAG_SIZE, in tls_enc_record()
84 sg_set_buf(sg_in, aad, TLS_AAD_SPACE_SIZE); in tls_enc_record()
85 sg_set_buf(sg_out, aad, TLS_AAD_SPACE_SIZE); in tls_enc_record()
142 struct scatterlist *sg_out, char *aad, char *iv, in tls_enc_records() argument
152 rc = tls_enc_record(aead_req, aead, aad, iv, in tls_enc_records()
316 void *buf, *iv, *aad, *dummy_buf; in tls_enc_skb() local
337 aad = buf + TLS_CIPHER_AES_GCM_128_SALT_SIZE + in tls_enc_skb()
339 dummy_buf = aad + TLS_AAD_SPACE_SIZE; in tls_enc_skb()
350 if (tls_enc_records(aead_req, ctx->aead_send, sg_in, sg_out, aad, iv, in tls_enc_skb()
Dtls_sw.c1424 u8 *aad, *iv, *mem = NULL; in decrypt_internal() local
1469 aad = (u8 *)(sgout + n_sgout); in decrypt_internal()
1470 iv = aad + prot->aad_size; in decrypt_internal()
1495 tls_make_aad(aad, rxm->full_len - prot->overhead_size + in decrypt_internal()
1502 sg_set_buf(&sgin[0], aad, prot->aad_size); in decrypt_internal()
1514 sg_set_buf(&sgout[0], aad, prot->aad_size); in decrypt_internal()