The director shall receive and safely keep at hard labor, in the prison, all prisoners sentenced to confinement, at hard labor herein, by the authority of the United States, until they shall be discharged agreeably to the laws of the United States.