Add an option to test datagram SPTPS with packet loss.
Fix CTR mode.
Fix the replay window in SPTPS.
Allow testing the replay window with sptps_test.