Handshake, and encrypt/decrypt working