Searched refs:aad_buf (Results 1 – 1 of 1) sorted by relevance
/hal_espressif-3.6.0/components/wpa_supplicant/src/crypto/ |
D | aes-ccm.c | 33 u8 aad_buf[2 * AES_BLOCK_SIZE]; in aes_ccm_auth_start() local 50 WPA_PUT_BE16(aad_buf, aad_len); in aes_ccm_auth_start() 51 os_memcpy(aad_buf + 2, aad, aad_len); in aes_ccm_auth_start() 52 os_memset(aad_buf + 2 + aad_len, 0, sizeof(aad_buf) - 2 - aad_len); in aes_ccm_auth_start() 54 xor_aes_block(aad_buf, x); in aes_ccm_auth_start() 55 aes_encrypt(aes, aad_buf, x); /* X_2 = E(K, X_1 XOR B_1) */ in aes_ccm_auth_start() 58 xor_aes_block(&aad_buf[AES_BLOCK_SIZE], x); in aes_ccm_auth_start() 60 aes_encrypt(aes, &aad_buf[AES_BLOCK_SIZE], x); in aes_ccm_auth_start()
|