How can I convert this Java code to C#?
byte[] a = ...some byte array...;
byte[] b = ...some byte array...;
MessageDigest m_Hash = MessageDigest.getInstance("SHA-1");
m_Hash.update(a);
m_Hash.update(b);
byte[] ub = m_Hash.digest();
So far I have:
var hash = HashAlgorithm.Create("SHA-1");
hash.ComputeHash(a);
hash.ComputeHash(b);
But I don't think this is going in the right direction because ComputeHash actually returns a byte[].