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)); }
bool IEquatable <SignedFileContentKey> .Equals(SignedFileContentKey other) => FileName == other.FileName && ByteSequenceComparer.Equals(ContentHash, other.ContentHash);
public override int GetHashCode() => Hash.Combine(FileName, ByteSequenceComparer.GetHashCode(ContentHash));