/external/wpa_supplicant_8/src/crypto/ |
aes-eax.c | 40 u8 nonce_mac[AES_BLOCK_SIZE], hdr_mac[AES_BLOCK_SIZE], local 60 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac)) 68 if (aes_128_ctr_encrypt(key, nonce_mac, data, data_len)) 76 tag[i] = nonce_mac[i] ^ data_mac[i] ^ hdr_mac[i]; 104 u8 nonce_mac[AES_BLOCK_SIZE], hdr_mac[AES_BLOCK_SIZE], local 124 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac)) { 146 if (tag[i] != (nonce_mac[i] ^ data_mac[i] ^ hdr_mac[i])) 150 return aes_128_ctr_encrypt(key, nonce_mac, data, data_len);
|
/external/wpa_supplicant/ |
aes_wrap.c | 346 u8 nonce_mac[BLOCK_SIZE], hdr_mac[BLOCK_SIZE], data_mac[BLOCK_SIZE]; local 365 omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac); 371 aes_128_ctr_encrypt(key, nonce_mac, data, data_len); 379 tag[i] = nonce_mac[i] ^ data_mac[i] ^ hdr_mac[i]; 403 u8 nonce_mac[BLOCK_SIZE], hdr_mac[BLOCK_SIZE], data_mac[BLOCK_SIZE]; local 422 omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac); 435 if (tag[i] != (nonce_mac[i] ^ data_mac[i] ^ hdr_mac[i])) 439 aes_128_ctr_encrypt(key, nonce_mac, data, data_len);
|
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/ |
aes_wrap.c | 351 u8 nonce_mac[BLOCK_SIZE], hdr_mac[BLOCK_SIZE], data_mac[BLOCK_SIZE]; local 370 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac)) 378 if (aes_128_ctr_encrypt(key, nonce_mac, data, data_len)) 386 tag[i] = nonce_mac[i] ^ data_mac[i] ^ hdr_mac[i]; 414 u8 nonce_mac[BLOCK_SIZE], hdr_mac[BLOCK_SIZE], data_mac[BLOCK_SIZE]; local 433 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac)) { 455 if (tag[i] != (nonce_mac[i] ^ data_mac[i] ^ hdr_mac[i])) 459 return aes_128_ctr_encrypt(key, nonce_mac, data, data_len);
|