public void RSAHelperCrossSignedMessageE2E() { RSAHelper receiver = new RSAHelper(); RSAHelper sender = new RSAHelper(); sender.SetPeerPublicKey(receiver.MyPublicKey); receiver.SetPeerPublicKey(sender.MyPublicKey); string original = "This is test message"; SignedMessage signedMessage = sender.EncryptAndSign(original); string decrypted = receiver.VerifyAndDecrypt(signedMessage); Assert.Equal(original, decrypted); }