Sam raet 4

Basic curvecp handshake in raet now working. Possibly some missed corner conditions