Home
last modified time | relevance | path

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

/external/wpa_supplicant_8/src/crypto/
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()
163 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, plain_len, x); in aes_ccm_ae()
[all …]
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()
Daes_wrap.h53 const u8 *aad, size_t aad_len,
58 const u8 *aad, size_t aad_len, const u8 *tag,
62 const u8 *aad, size_t aad_len, u8 *tag);
65 const u8 *aad, size_t aad_len, u8 *crypt, u8 *auth);
68 const u8 *aad, size_t aad_len, const u8 *auth,
/external/wpa_supplicant_8/wpa_supplicant/
Dmesh_rsn.c460 const size_t aad_len[] = { ETH_ALEN, ETH_ALEN, ie - cat }; in mesh_rsn_protect_frame() local
508 aad, aad_len, mic_payload)) { in mesh_rsn_protect_frame()
535 const size_t aad_len[] = { ETH_ALEN, ETH_ALEN, in mesh_rsn_process_ampe() local
581 aad, aad_len, ampe_buf)) { in mesh_rsn_process_ampe()