If a man's anus was penetrated by another man's penis, this was called sodomy and was tried under indecent assault, a form of aggravated assault.
If a male penetrated a female's anus by his penis without her consent, he would also be charged with indecent assault.