Lines Matching refs:i
232 int i; in entropy_gather_internal() local
243 for( i = 0; i < ctx->source_count; i++ ) in entropy_gather_internal()
245 if( ctx->source[i].strong == MBEDTLS_ENTROPY_SOURCE_STRONG ) in entropy_gather_internal()
249 if( ( ret = ctx->source[i].f_source( ctx->source[i].p_source, in entropy_gather_internal()
260 if( ( ret = entropy_update( ctx, (unsigned char) i, in entropy_gather_internal()
263 ctx->source[i].size += olen; in entropy_gather_internal()
300 int ret, count = 0, i, thresholds_reached; in mbedtls_entropy_func() local
341 for( i = 0; i < ctx->source_count; i++ ) in mbedtls_entropy_func()
343 if( ctx->source[i].size < ctx->source[i].threshold ) in mbedtls_entropy_func()
345 if( ctx->source[i].strong == MBEDTLS_ENTROPY_SOURCE_STRONG ) in mbedtls_entropy_func()
346 strong_size += ctx->source[i].size; in mbedtls_entropy_func()
402 for( i = 0; i < ctx->source_count; i++ ) in mbedtls_entropy_func()
403 ctx->source[i].size = 0; in mbedtls_entropy_func()
558 size_t i; in mbedtls_entropy_source_self_test_check_bits() local
560 for( i = 0; i < buf_len; i++ ) in mbedtls_entropy_source_self_test_check_bits()
562 set &= buf[i]; in mbedtls_entropy_source_self_test_check_bits()
563 unset |= buf[i]; in mbedtls_entropy_source_self_test_check_bits()
634 size_t i, j; in mbedtls_entropy_self_test() local
661 for( i = 0; i < 8; i++ ) in mbedtls_entropy_self_test()