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); }
public void can_decrypt_using_verifier() { byte[] signature = _signer.Sign(_data); Assert.AreEqual(true, _verifier.Verify(_data, signature)); }