Re: just nervous needs assurance
Hand to genital contact does not pose a risk of an HIV infection, even if you had a small cut. HIV transmission takes place, sexually, within the confines of the human body which is the only place HIV remains infectious. Once exposed to air it becomes, instantly, non-viable (non-infectious).
You cut would have instantly formed a protective membrane, effectively sealing itself against a viral infections. As it was you were not even close to a risk of an HIV infection, with or without your cut.