Lines Matching refs:i
201 int i; in entropy_gather_internal() local
213 for (i = 0; i < ctx->source_count; i++) { in entropy_gather_internal()
214 if (ctx->source[i].strong == MBEDTLS_ENTROPY_SOURCE_STRONG) { in entropy_gather_internal()
219 if ((ret = ctx->source[i].f_source(ctx->source[i].p_source, in entropy_gather_internal()
228 if ((ret = entropy_update(ctx, (unsigned char) i, in entropy_gather_internal()
232 ctx->source[i].size += olen; in entropy_gather_internal()
272 int ret, count = 0, i, thresholds_reached; in mbedtls_entropy_func() local
314 for (i = 0; i < ctx->source_count; i++) { in mbedtls_entropy_func()
315 if (ctx->source[i].size < ctx->source[i].threshold) { in mbedtls_entropy_func()
318 if (ctx->source[i].strong == MBEDTLS_ENTROPY_SOURCE_STRONG) { in mbedtls_entropy_func()
319 strong_size += ctx->source[i].size; in mbedtls_entropy_func()
362 for (i = 0; i < ctx->source_count; i++) { in mbedtls_entropy_func()
363 ctx->source[i].size = 0; in mbedtls_entropy_func()
529 size_t i; in mbedtls_entropy_source_self_test_check_bits() local
531 for (i = 0; i < buf_len; i++) { in mbedtls_entropy_source_self_test_check_bits()
532 set &= buf[i]; in mbedtls_entropy_source_self_test_check_bits()
533 unset |= buf[i]; in mbedtls_entropy_source_self_test_check_bits()
609 size_t i, j; in mbedtls_entropy_self_test() local
640 for (i = 0; i < 8; i++) { in mbedtls_entropy_self_test()