Lines Matching refs:i

47 	unsigned int i;  in xor()  local
49 for (i = 0; i < len; i++) in xor()
50 a[i] ^= b[i]; in xor()
66 int i; in qdf_get_hmac_hash() local
75 for (i = 0; i < element_cnt; i++) in qdf_get_hmac_hash()
76 src_len[i] = addr_len[i]; in qdf_get_hmac_hash()
142 int i; in qdf_update_dbl() local
146 for (i = AES_BLOCK_SIZE - 1; i >= 0; i--) { in qdf_update_dbl()
147 msb = d[i] & 0x80; in qdf_update_dbl()
148 d[i] = d[i] << 1; in qdf_update_dbl()
149 d[i] += msb_prev ? 1 : 0; in qdf_update_dbl()
159 uint8_t i; in xor_128() local
161 for (i = 0; i < AES_BLOCK_SIZE; i++) in xor_128()
162 out[i] = a[i] ^ b[i]; in xor_128()
167 int i, overflow = 0; in leftshift_onebit() local
169 for (i = (AES_BLOCK_SIZE - 1); i >= 0; i--) { in leftshift_onebit()
170 output[i] = input[i] << 1; in leftshift_onebit()
171 output[i] |= overflow; in leftshift_onebit()
172 overflow = (input[i] & 0x80) ? 1 : 0; in leftshift_onebit()
265 int i, num_block = (len + 15) / AES_BLOCK_SIZE; in qdf_crypto_aes_128_cmac() local
297 for (i = 0; i < AES_BLOCK_SIZE; i++) in qdf_crypto_aes_128_cmac()
298 x[i] = 0; in qdf_crypto_aes_128_cmac()
300 for (i = 0; i < (num_block - 1); i++) { in qdf_crypto_aes_128_cmac()
302 xor_128(x, &data[AES_BLOCK_SIZE * i], y); in qdf_crypto_aes_128_cmac()
323 int i, num_block = (len + 15) / AES_BLOCK_SIZE; in qdf_crypto_aes_128_cmac() local
363 for (i = 0; i < AES_BLOCK_SIZE; i++) in qdf_crypto_aes_128_cmac()
364 x[i] = 0; in qdf_crypto_aes_128_cmac()
366 for (i = 0; i < (num_block - 1); i++) { in qdf_crypto_aes_128_cmac()
368 xor_128(x, &data[AES_BLOCK_SIZE * i], y); in qdf_crypto_aes_128_cmac()
411 size_t i; in qdf_get_keyed_hash() local
444 for (i = 0; i < num_elements; i++) { in qdf_get_keyed_hash()
445 ret = crypto_shash_update(desc, src[i], src_len[i]); in qdf_get_keyed_hash()
479 unsigned int i; in qdf_aes_s2v() local
499 for (i = 0; i < num_s - 1; i++) { in qdf_aes_s2v()
502 ret = qdf_get_keyed_hash(alg, key, key_len, &s[i], &s_len[i], 1, in qdf_aes_s2v()
509 if (s_len[i] >= AES_BLOCK_SIZE) { in qdf_aes_s2v()
512 t = qdf_mem_malloc(s_len[i]); in qdf_aes_s2v()
515 qdf_mem_copy(t, s[i], s_len[i]); in qdf_aes_s2v()
516 xor(t + s_len[i] - AES_BLOCK_SIZE, d, AES_BLOCK_SIZE); in qdf_aes_s2v()
517 t_len = s_len[i]; in qdf_aes_s2v()
523 qdf_mem_copy(buf, s[i], s_len[i]); in qdf_aes_s2v()
524 buf[s_len[i]] = 0x80; in qdf_aes_s2v()
525 xor(d, s[i], AES_BLOCK_SIZE); in qdf_aes_s2v()