Fungal infection and necrotic tissue? That's the black dead stuff.
You need to see a doctor and get that sorted. Unless you smashed them with a rolling pin and bruised them terribly, that's an infection that seems to be damaging the flesh under your nails.
(not a doctor though)