public HashOutput[] GetHashes(byte[] buffer, int offset, int count) { HashOutput[] output = new HashOutput[Count]; HashAlgorithm current; for (int i = 0; i < Count; i++) { current = hashFunctions[i]; byte[] hash = current.ComputeHash(buffer, offset, count); output[i] = new HashOutput(hash, current.OutputBlockSize); } return(output); }
public HashOutput[] GetHashes(Stream stream) { HashOutput[] output = new HashOutput[Count]; HashAlgorithm current; for (int i = 0; i < Count; i++) { current = hashFunctions[i]; byte[] hash = current.ComputeHash(stream); output[i] = new HashOutput(hash, current.OutputBlockSize); } return(output); }