Lines Matching refs:x
31 u8 *x) in aes_ccm_auth_start() argument
45 aes_encrypt(aes, b, x); /* X_1 = E(K, B_0) */ 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()
65 static void aes_ccm_auth(void *aes, const u8 *data, size_t len, u8 *x) in aes_ccm_auth() argument
72 xor_aes_block(x, data); in aes_ccm_auth()
74 aes_encrypt(aes, x, x); in aes_ccm_auth()
79 x[i] ^= *data++; in aes_ccm_auth()
80 aes_encrypt(aes, x, x); in aes_ccm_auth()
118 static void aes_ccm_encr_auth(void *aes, size_t M, u8 *x, u8 *a, u8 *auth) in aes_ccm_encr_auth() argument
123 wpa_hexdump_key(MSG_DEBUG, "CCM T", x, M); in aes_ccm_encr_auth()
128 auth[i] = x[i] ^ tmp[i]; in aes_ccm_encr_auth()
155 u8 x[AES_BLOCK_SIZE], a[AES_BLOCK_SIZE]; in aes_ccm_ae() local
164 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, plain_len, x); in aes_ccm_ae()
165 aes_ccm_auth(aes, plain, plain_len, x); in aes_ccm_ae()
170 aes_ccm_encr_auth(aes, M, x, a, auth); in aes_ccm_ae()
185 u8 x[AES_BLOCK_SIZE], a[AES_BLOCK_SIZE]; in aes_ccm_ad() local
202 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, crypt_len, x); in aes_ccm_ad()
203 aes_ccm_auth(aes, plain, crypt_len, x); in aes_ccm_ad()
207 if (os_memcmp_const(x, t, M) != 0) { in aes_ccm_ad()