Searched refs:i (Results 1 – 11 of 11) sorted by relevance
68 unsigned int i; in ccm_cbc_mac() local73 dlen += 2; i = 2; in ccm_cbc_mac()75 i = 0; in ccm_cbc_mac()78 while (i < dlen) { in ccm_cbc_mac()79 T[i++ % (Nb * Nk)] ^= *data++; in ccm_cbc_mac()80 if (((i % (Nb * Nk)) == 0) || dlen == i) { in ccm_cbc_mac()100 unsigned int i; in ccm_ctr_mode() local118 for (i = 0; i < inlen; ++i) { in ccm_ctr_mode()119 if ((i % (TC_AES_BLOCK_SIZE)) == 0) { in ccm_ctr_mode()128 *out++ = buffer[i % (TC_AES_BLOCK_SIZE)] ^ *in++; in ccm_ctr_mode()[all …]
76 unsigned int i; in tc_aes128_set_encrypt_key() local85 for (i = 0; i < Nk; ++i) { in tc_aes128_set_encrypt_key()86 s->words[i] = ((uint32_t)k[Nb*i]<<24) | (k[Nb*i+1]<<16) | in tc_aes128_set_encrypt_key()87 (k[Nb*i+2]<<8) | (k[Nb*i+3]); in tc_aes128_set_encrypt_key()90 for (; i < (Nb * (Nr + 1)); ++i) { in tc_aes128_set_encrypt_key()91 t = s->words[i-1]; in tc_aes128_set_encrypt_key()92 if ((i % Nk) == 0) { in tc_aes128_set_encrypt_key()93 t = subword(rotword(t)) ^ rconst[i/Nk]; in tc_aes128_set_encrypt_key()95 s->words[i] = s->words[i-Nk] ^ t; in tc_aes128_set_encrypt_key()115 unsigned int i; in sub_bytes() local[all …]
55 unsigned int i; in arrInc() local57 for (i = len; i > 0U; i--) { in arrInc()58 if (++arr[i-1] != 0U) { in arrInc()103 unsigned int i; in tc_ctr_prng_update() local104 for (i = 0U; i < sizeof temp; i++) { in tc_ctr_prng_update()105 temp[i] ^= providedData[i]; in tc_ctr_prng_update()124 unsigned int i; in tc_ctr_prng_init() local143 for (i = 0U; i < sizeof seed_material; i++) { in tc_ctr_prng_init()144 seed_material[i] ^= personalization_buf[i]; in tc_ctr_prng_init()170 unsigned int i; in tc_ctr_prng_reseed() local[all …]
159 unsigned int i; in tc_cmac_update() local197 for (i = 0; i < TC_AES_BLOCK_SIZE; ++i) { in tc_cmac_update()198 s->iv[i] ^= s->leftover[i]; in tc_cmac_update()205 for (i = 0; i < TC_AES_BLOCK_SIZE; ++i) { in tc_cmac_update()206 s->iv[i] ^= data[i]; in tc_cmac_update()225 unsigned int i; in tc_cmac_final() local244 for (i = 0; i < TC_AES_BLOCK_SIZE; ++i) { in tc_cmac_final()245 s->iv[i] ^= s->leftover[i] ^ k[i]; in tc_cmac_final()
41 unsigned int i; in rekey() local43 for (i = 0; i < key_size; ++i) { in rekey()44 key[i] = inner_pad ^ new_key[i]; in rekey()45 key[i + TC_SHA256_BLOCK_SIZE] = outer_pad ^ new_key[i]; in rekey()47 for (; i < TC_SHA256_BLOCK_SIZE; ++i) { in rekey()48 key[i] = inner_pad; key[i + TC_SHA256_BLOCK_SIZE] = outer_pad; in rekey()
89 wordcount_t i; in uECC_vli_clear() local90 for (i = 0; i < num_words; ++i) { in uECC_vli_clear()91 vli[i] = 0; in uECC_vli_clear()98 wordcount_t i; in uECC_vli_isZero() local99 for (i = 0; i < num_words; ++i) { in uECC_vli_isZero()100 bits |= vli[i]; in uECC_vli_isZero()116 wordcount_t i; in vli_numDigits() local119 for (i = max_words - 1; i >= 0 && vli[i] == 0; --i) { in vli_numDigits()122 return (i + 1); in vli_numDigits()129 uECC_word_t i; in uECC_vli_numBits() local[all …]
44 unsigned int i; in tc_ctr_mode() local63 for (i = 0; i < inlen; ++i) { in tc_ctr_mode()64 if ((i % (TC_AES_BLOCK_SIZE)) == 0) { in tc_ctr_mode()77 *out++ = buffer[i%(TC_AES_BLOCK_SIZE)] ^ *in++; in tc_ctr_mode()
70 for (unsigned int i = 0; i < size; i++) { in _compare() local71 result |= tempa[i] ^ tempb[i]; in _compare()
89 unsigned int i; in tc_sha256_final() local124 for (i = 0; i < TC_SHA256_STATE_BLOCKS; ++i) { in tc_sha256_final()125 unsigned int t = *((unsigned int *) &s->iv[i]); in tc_sha256_final()188 unsigned int i; in compress() local193 for (i = 0; i < 16; ++i) { in compress()195 t1 = work_space[i] = n; in compress()196 t1 += h + Sigma1(e) + Ch(e, f, g) + k256[i]; in compress()202 for ( ; i < 64; ++i) { in compress()203 s0 = work_space[(i+1)&0x0f]; in compress()205 s1 = work_space[(i+14)&0x0f]; in compress()[all …]
106 unsigned int i; in inv_sub_bytes() local108 for (i = 0; i < (Nb*Nk); ++i) { in inv_sub_bytes()109 s[i] = inv_sbox[s[i]]; in inv_sub_bytes()132 unsigned int i; in tc_aes_decrypt() local146 for (i = Nr - 1; i > 0; --i) { in tc_aes_decrypt()149 add_round_key(state, s->words + Nb*i); in tc_aes_decrypt()
208 bitcount_t i; in uECC_verify() local268 for (i = num_bits - 2; i >= 0; --i) { in uECC_verify()272 index = (!!uECC_vli_testBit(u1, i)) | ((!!uECC_vli_testBit(u2, i)) << 1); in uECC_verify()