Home
last modified time | relevance | path

Searched refs:aad_len (Results 1 – 6 of 6) sorted by relevance

/dragonfly/contrib/wpa_supplicant/src/crypto/
H A Daes-ccm.c29 const u8 *aad, size_t aad_len, size_t plain_len, in aes_ccm_auth_start() argument
37 b[0] = aad_len ? 0x40 : 0 /* Adata */; in aes_ccm_auth_start()
46 if (!aad_len) in aes_ccm_auth_start()
49 WPA_PUT_BE16(aad_buf, aad_len); in aes_ccm_auth_start()
50 os_memcpy(aad_buf + 2, aad, aad_len); in aes_ccm_auth_start()
51 os_memset(aad_buf + 2 + aad_len, 0, sizeof(aad_buf) - 2 - aad_len); in aes_ccm_auth_start()
56 if (aad_len > AES_BLOCK_SIZE - 2) { in aes_ccm_auth_start()
150 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth) in aes_ccm_ae() argument
156 if (aad_len > 30 || M > AES_BLOCK_SIZE) in aes_ccm_ae()
180 const u8 *aad, size_t aad_len, const u8 *auth, u8 *plain) in aes_ccm_ad() argument
[all …]
H A Daes-gcm.c229 static void aes_gcm_ghash(const u8 *H, const u8 *aad, size_t aad_len, in aes_gcm_ghash() argument
241 ghash(H, aad, aad_len, S); in aes_gcm_ghash()
243 WPA_PUT_BE64(len_buf, aad_len * 8); in aes_gcm_ghash()
256 const u8 *aad, size_t aad_len, u8 *crypt, u8 *tag) in aes_gcm_ae() argument
272 aes_gcm_ghash(H, aad, aad_len, crypt, plain_len, S); in aes_gcm_ae()
290 const u8 *aad, size_t aad_len, const u8 *tag, u8 *plain) in aes_gcm_ad() argument
306 aes_gcm_ghash(H, aad, aad_len, crypt, crypt_len, S); in aes_gcm_ad()
323 const u8 *aad, size_t aad_len, u8 *tag) in aes_gmac() argument
325 return aes_gcm_ae(key, key_len, iv, iv_len, NULL, 0, aad, aad_len, NULL, in aes_gmac()
H A Daes_wrap.h55 const u8 *aad, size_t aad_len,
60 const u8 *aad, size_t aad_len, const u8 *tag,
64 const u8 *aad, size_t aad_len, u8 *tag);
67 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth);
70 const u8 *aad, size_t aad_len, const u8 *auth,
/dragonfly/contrib/wpa_supplicant/wpa_supplicant/
H A Dmesh_rsn.c541 const size_t aad_len[] = { ETH_ALEN, ETH_ALEN, ie - cat }; in mesh_rsn_protect_frame() local
621 aad, aad_len, mic_payload)) { in mesh_rsn_protect_frame()
645 const size_t aad_len[] = { ETH_ALEN, ETH_ALEN, in mesh_rsn_process_ampe() local
694 aad, aad_len, ampe_buf)) { in mesh_rsn_process_ampe()
/dragonfly/contrib/wpa_supplicant/src/ap/
H A Dwpa_auth.c1538 size_t aad_len[1]; in __wpa_send_eapol() local
2333 size_t aad_len[1]; in wpa_aead_decrypt() local
2354 aad_len[0] = pos - buf; in wpa_aead_decrypt()
2483 size_t aad_len[5]; in fils_decrypt_assoc() local
2529 aad_len[0] = ETH_ALEN; in fils_decrypt_assoc()
2532 aad_len[1] = ETH_ALEN; in fils_decrypt_assoc()
2535 aad_len[2] = FILS_NONCE_LEN; in fils_decrypt_assoc()
2573 size_t aad_len[5]; in fils_encrypt_assoc() local
2588 aad_len[0] = ETH_ALEN; in fils_encrypt_assoc()
2591 aad_len[1] = ETH_ALEN; in fils_encrypt_assoc()
[all …]
/dragonfly/contrib/wpa_supplicant/src/rsn_supp/
H A Dwpa.c105 size_t aad_len[1]; in wpa_eapol_key_send() local
141 aad_len[0] = key_data - buf; in wpa_eapol_key_send()
144 1, aad, aad_len, key_data) < 0) { in wpa_eapol_key_send()
2125 size_t aad_len[1]; in wpa_supp_aead_decrypt() local
2151 aad_len[0] = pos - buf; in wpa_supp_aead_decrypt()
2153 1, aad, aad_len, tmp) < 0) { in wpa_supp_aead_decrypt()