Lines Matching refs:i

144     size_t i;  in chacha20_block()  local
150 for( i = 0U; i < 10U; i++ ) in chacha20_block()
170 for( i = 0U; i < 16; i++ ) in chacha20_block()
172 size_t offset = i * 4U; in chacha20_block()
174 keystream[offset ] = (unsigned char)( working_state[i] ); in chacha20_block()
175 keystream[offset + 1U] = (unsigned char)( working_state[i] >> 8 ); in chacha20_block()
176 keystream[offset + 2U] = (unsigned char)( working_state[i] >> 16 ); in chacha20_block()
177 keystream[offset + 3U] = (unsigned char)( working_state[i] >> 24 ); in chacha20_block()
256 size_t i; in mbedtls_chacha20_update() local
280 for( i = 0U; i < 64U; i += 8U ) in mbedtls_chacha20_update()
282 output[offset + i ] = input[offset + i ] ^ ctx->keystream8[i ]; in mbedtls_chacha20_update()
283 output[offset + i+1] = input[offset + i+1] ^ ctx->keystream8[i+1]; in mbedtls_chacha20_update()
284 output[offset + i+2] = input[offset + i+2] ^ ctx->keystream8[i+2]; in mbedtls_chacha20_update()
285 output[offset + i+3] = input[offset + i+3] ^ ctx->keystream8[i+3]; in mbedtls_chacha20_update()
286 output[offset + i+4] = input[offset + i+4] ^ ctx->keystream8[i+4]; in mbedtls_chacha20_update()
287 output[offset + i+5] = input[offset + i+5] ^ ctx->keystream8[i+5]; in mbedtls_chacha20_update()
288 output[offset + i+6] = input[offset + i+6] ^ ctx->keystream8[i+6]; in mbedtls_chacha20_update()
289 output[offset + i+7] = input[offset + i+7] ^ ctx->keystream8[i+7]; in mbedtls_chacha20_update()
303 for( i = 0U; i < size; i++) in mbedtls_chacha20_update()
305 output[offset + i] = input[offset + i] ^ ctx->keystream8[i]; in mbedtls_chacha20_update()
536 unsigned i; in mbedtls_chacha20_self_test() local
539 for( i = 0U; i < 2U; i++ ) in mbedtls_chacha20_self_test()
542 mbedtls_printf( " ChaCha20 test %u ", i ); in mbedtls_chacha20_self_test()
544 ret = mbedtls_chacha20_crypt( test_keys[i], in mbedtls_chacha20_self_test()
545 test_nonces[i], in mbedtls_chacha20_self_test()
546 test_counters[i], in mbedtls_chacha20_self_test()
547 test_lengths[i], in mbedtls_chacha20_self_test()
548 test_input[i], in mbedtls_chacha20_self_test()
553 ASSERT( 0 == memcmp( output, test_output[i], test_lengths[i] ), in mbedtls_chacha20_self_test()