Security and Makespan Trade-Off Strategy in Fog-Enabled IoT Networks