Amendment to Q9299. Correct question below:
Whilst performing Salah with Jamat, for a couple of seconds I touched my private part & concluded with certainty in my mind that this deliberate act, naoodhoobillah, was to mock Salah/Allah. Now I am afraid of having committed kufr. Would this be kufr & invalidate nikah?