예제 #1
0
        public override bool VerifySignedPEFile(Stream stream)
        {
            var buffer = new byte[_stamp.Length];

            return(stream.TryReadAll(buffer, 0, buffer.Length) == buffer.Length &&
                   ByteSequenceComparer.Equals(buffer, _stamp));
        }
예제 #2
0
 bool IEquatable <SignedFileContentKey> .Equals(SignedFileContentKey other)
 => FileName == other.FileName && ByteSequenceComparer.Equals(ContentHash, other.ContentHash);
예제 #3
0
 public override int GetHashCode()
 => Hash.Combine(FileName, ByteSequenceComparer.GetHashCode(ContentHash));