Condom protected sex is safe sex as long as the condom did not slip off or
break. You had
NO RISK of acquiring HIV from the exposures you describe.
To correct the erroneous advice above, no STD can be transmitted "through" a condom.
Some STD's, such as herpes, and rarely syphilis, can possibly be acquired even with correct use of a condom as those viruses is generally transmitted by skin-to-skin contact.