Thanks for your query.Based on the facts that you have posted it appears that you have acquired skin infection
or allergic reaction
over penis from the beddings in the prison.
It is difficult to make any comment without clinical examination.
Please consult qualified Dermatologist
for evaluation. Take some anti allergic medication like Antihistamine Tab Avil
after discussing with your family Physician.