Searched refs:nonce_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 60 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac)) in aes_128_eax_encrypt() 68 if (aes_128_ctr_encrypt(key, nonce_mac, data, data_len)) 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 124 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac)) { in aes_128_eax_decrypt() 146 if (tag[i] != (nonce_mac[i] ^ data_mac[i] ^ hdr_mac[i])) in aes_128_eax_decrypt() 150 return aes_128_ctr_encrypt(key, nonce_mac, data, data_len); 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 365 omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac); in aes_128_eax_encrypt() 371 aes_128_ctr_encrypt(key, nonce_mac, data, data_len); 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 422 omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac); in aes_128_eax_decrypt() 435 if (tag[i] != (nonce_mac[i] ^ data_mac[i] ^ hdr_mac[i])) in aes_128_eax_decrypt() 439 aes_128_ctr_encrypt(key, nonce_mac, data, data_len); 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 370 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac)) in aes_128_eax_encrypt() 378 if (aes_128_ctr_encrypt(key, nonce_mac, data, data_len)) 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 433 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac)) { in aes_128_eax_decrypt() 455 if (tag[i] != (nonce_mac[i] ^ data_mac[i] ^ hdr_mac[i])) in aes_128_eax_decrypt() 459 return aes_128_ctr_encrypt(key, nonce_mac, data, data_len); in aes_128_eax_decrypt()
|