Ipsec Protocol Functions Math