Searched refs:hdr_mac (Results 1 – 3 of 3) sorted by relevance
/external/wpa_supplicant_8/src/crypto/ |
D | aes-eax.c | 40 u8 nonce_mac[AES_BLOCK_SIZE], hdr_mac[AES_BLOCK_SIZE], in aes_128_eax_encrypt() local 65 if (omac1_aes_128(key, buf, 16 + hdr_len, hdr_mac)) in aes_128_eax_encrypt() 76 tag[i] = nonce_mac[i] ^ data_mac[i] ^ hdr_mac[i]; in aes_128_eax_encrypt() 104 u8 nonce_mac[AES_BLOCK_SIZE], hdr_mac[AES_BLOCK_SIZE], in aes_128_eax_decrypt() local 131 if (omac1_aes_128(key, buf, 16 + hdr_len, hdr_mac)) { in aes_128_eax_decrypt() 146 if (tag[i] != (nonce_mac[i] ^ data_mac[i] ^ hdr_mac[i])) in aes_128_eax_decrypt()
|
/external/wpa_supplicant/ |
D | aes_wrap.c | 346 u8 nonce_mac[BLOCK_SIZE], hdr_mac[BLOCK_SIZE], data_mac[BLOCK_SIZE]; in aes_128_eax_encrypt() local 369 omac1_aes_128(key, buf, 16 + hdr_len, hdr_mac); in aes_128_eax_encrypt() 379 tag[i] = nonce_mac[i] ^ data_mac[i] ^ hdr_mac[i]; in aes_128_eax_encrypt() 403 u8 nonce_mac[BLOCK_SIZE], hdr_mac[BLOCK_SIZE], data_mac[BLOCK_SIZE]; in aes_128_eax_decrypt() local 426 omac1_aes_128(key, buf, 16 + hdr_len, hdr_mac); in aes_128_eax_decrypt() 435 if (tag[i] != (nonce_mac[i] ^ data_mac[i] ^ hdr_mac[i])) in aes_128_eax_decrypt()
|
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/ |
D | aes_wrap.c | 351 u8 nonce_mac[BLOCK_SIZE], hdr_mac[BLOCK_SIZE], data_mac[BLOCK_SIZE]; in aes_128_eax_encrypt() local 375 if (omac1_aes_128(key, buf, 16 + hdr_len, hdr_mac)) in aes_128_eax_encrypt() 386 tag[i] = nonce_mac[i] ^ data_mac[i] ^ hdr_mac[i]; in aes_128_eax_encrypt() 414 u8 nonce_mac[BLOCK_SIZE], hdr_mac[BLOCK_SIZE], data_mac[BLOCK_SIZE]; in aes_128_eax_decrypt() local 440 if (omac1_aes_128(key, buf, 16 + hdr_len, hdr_mac)) { in aes_128_eax_decrypt() 455 if (tag[i] != (nonce_mac[i] ^ data_mac[i] ^ hdr_mac[i])) in aes_128_eax_decrypt()
|