public void Can_handshake_on_connect_and_send_encrypted_payload() { var @out = new XunitDuplexTextWriter(_console, Console.Out); unsafe { using var ckp = GenerateEncryptionKey(); using var skp = GenerateEncryptionKey(); var psk1 = PskRef.Create(); var psk2 = PskRef.Create(psk1.ptr); var sp = new NoiseProtocol(false, skp.PrivateKey, psk1, default, "[SERVER]", @out);
public void Can_send_and_receive_from_socket() { var @out = new XunitDuplexTextWriter(_console, Console.Out); using var server = new SocketServer(new EchoProtocol(false, default, @out), default, @out);