public void SignAndVerifyFromMessageTest() { var kp = PublicKeyAuth.GenerateKeyPair(); var signature = new PublicKeyAuth(); IBuffer data = CryptographicBuffer.ConvertStringToBinary("Hello, World!", BinaryStringEncoding.Utf8); signature.Append(data); var output = signature.GetValueAndReset(kp.Secret); Assert.AreEqual(64, output.Length); Assert.AreEqual(true, signature.GetValueAndVerify(output, kp.Public)); }