At some hypothetical level, the risk of HIV transmission might be higher with the sort of exposure you describe in the presence of hemorrhoids (or any other cause of anal bleeding, like an anal
fissureAnal fissure) than if there were no anal bleeding problem. But the risk is so low anyway, especially without
ejaculationBlood in the semen
Delayed ejaculation
Premature ejaculation
Retrograde ejaculation, that you really can disregard it.
Perhaps this is off topic, but is difficult for me to imagine the behaviors you describe unless the person receiving the massage was signaling his acceptance and potential willingness for a
sexualCauses of sexual dysfunction
Erection problems
Female sexual dysfunction
Sexual problems overview encounter. (Or her willingness; I think you are male, but it isn't clear from your comments.)
Finally, if you are a gay man (or a woman who has participated in receptive anal sex), be aware that anal bleeding can be evidence of STD. If you are at risk, don't just assume hemorrhoids; get it checked out.
Best wishes-- HHH, MD