Lines Matching refs:i

137     size_t i;  in chacha20_block()  local
143 for( i = 0U; i < 10U; i++ ) in chacha20_block()
163 for( i = 0U; i < 16; i++ ) in chacha20_block()
165 size_t offset = i * 4U; in chacha20_block()
167 MBEDTLS_PUT_UINT32_LE(working_state[i], keystream, offset); in chacha20_block()
246 size_t i; in mbedtls_chacha20_update() local
270 for( i = 0U; i < 64U; i += 8U ) in mbedtls_chacha20_update()
272 output[offset + i ] = input[offset + i ] ^ ctx->keystream8[i ]; in mbedtls_chacha20_update()
273 output[offset + i+1] = input[offset + i+1] ^ ctx->keystream8[i+1]; in mbedtls_chacha20_update()
274 output[offset + i+2] = input[offset + i+2] ^ ctx->keystream8[i+2]; in mbedtls_chacha20_update()
275 output[offset + i+3] = input[offset + i+3] ^ ctx->keystream8[i+3]; in mbedtls_chacha20_update()
276 output[offset + i+4] = input[offset + i+4] ^ ctx->keystream8[i+4]; in mbedtls_chacha20_update()
277 output[offset + i+5] = input[offset + i+5] ^ ctx->keystream8[i+5]; in mbedtls_chacha20_update()
278 output[offset + i+6] = input[offset + i+6] ^ ctx->keystream8[i+6]; in mbedtls_chacha20_update()
279 output[offset + i+7] = input[offset + i+7] ^ ctx->keystream8[i+7]; in mbedtls_chacha20_update()
293 for( i = 0U; i < size; i++) in mbedtls_chacha20_update()
295 output[offset + i] = input[offset + i] ^ ctx->keystream8[i]; in mbedtls_chacha20_update()
526 unsigned i; in mbedtls_chacha20_self_test() local
529 for( i = 0U; i < 2U; i++ ) in mbedtls_chacha20_self_test()
532 mbedtls_printf( " ChaCha20 test %u ", i ); in mbedtls_chacha20_self_test()
534 ret = mbedtls_chacha20_crypt( test_keys[i], in mbedtls_chacha20_self_test()
535 test_nonces[i], in mbedtls_chacha20_self_test()
536 test_counters[i], in mbedtls_chacha20_self_test()
537 test_lengths[i], in mbedtls_chacha20_self_test()
538 test_input[i], in mbedtls_chacha20_self_test()
543 ASSERT( 0 == memcmp( output, test_output[i], test_lengths[i] ), in mbedtls_chacha20_self_test()