예제 #1
0
        public void can_encrypt_and_decrypt()
        {
            byte[] signature = _signer.Sign(_data);
            Assert.AreNotEqual(_data, signature);
            bool decrypted = _signer.Verify(_data, signature);

            Assert.AreEqual(true, decrypted);
        }
예제 #2
0
 public void can_decrypt_using_verifier()
 {
     byte[] signature = _signer.Sign(_data);
     Assert.AreEqual(true, _verifier.Verify(_data, signature));
 }