I have three fields: string Title
, byte[] Body
, and byte[] Data
, from which I want to calculate a single hash as a check to be sure they haven't been tampered with or corrupted.
In Python, I can use md5.update()
a few times in succession to perform this. But I can't find similar capability in C#. To use MD5.ComputeHash() I'd need to copy all my sources into a single byte[], which is a step I'd like to avoid.
How can I hash it all together into one hash without having to copy the data into a temporary buffer?