I want to append byte array to stream i opened but just to pass it to hash algorithm and compute the hash, something like:
byte[] data;
using (BufferedStream bs = new BufferedStream(File.OpenRead(path), 1200000))
{
MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
byte[] hash = md5.ComputeHash(data + bs);
}
I don't know how to do "data + bs" or "bs + data" part... Any idea about this?