[IPSEC]: Separate inner/outer mode processing on input