Ipsec Protocol Functions Math Problems