示例#1
0
 public static byte[] ComputeHash(this IHashAlgorithm algorithm, byte[] data, int offset, int length)
 {
     algorithm.Reset();
     algorithm.Update(data, offset, length);
     return(algorithm.Final());
 }