コード例 #1
0
 public override string ToString()
 {
     return("Sender: '" + SenderHash.ToString() +
            "', Receiver: '" + ReceiverHash.ToString() +
            "', Payload length: " + Payload.Length.ToString() +
            "', Hash: '" + ComputedHash?.ToString());
 }
コード例 #2
0
 public bool Verify(out string Reason)
 {
     return(ComputedHash.Verify(GetHashableStream(), out Reason));
 }
コード例 #3
0
 /// <summary>
 /// Verifies the hash and signature of an object
 /// </summary>
 /// <param name="SigningPublicCert"></param>
 /// <returns>Returns TRUE if the hash and signature verify correctly</returns>
 public bool Verify(Cert SigningPublicCert, out string Reason)
 {
     return(ComputedHash.Verify(GetHashableStream(), out Reason, SigningPublicCert));
 }
コード例 #4
0
        public bool Verify()
        {
            string n = null;

            return(ComputedHash.Verify(GetHashableStream(), out n));
        }
コード例 #5
0
        public bool Verify(Cert SigningPublicCert)
        {
            string n = null;

            return(ComputedHash.Verify(GetHashableStream(), out n, SigningPublicCert));
        }