/// <summary>When overridden in a derived class, computes the hash value of a specified binary stream by using a specified hashing algorithm.</summary> /// <param name="data">The binary stream to hash. </param> /// <param name="hashAlgorithm">The algorithm to use to hash the data. </param> /// <returns>The hashed data. </returns> /// <exception cref="T:System.NotImplementedException">A derived class must override this method. </exception> // Token: 0x06002171 RID: 8561 RVA: 0x000763CC File Offset: 0x000745CC protected virtual byte[] HashData(Stream data, HashAlgorithmName hashAlgorithm) { throw DSA.DerivedClassMustOverride(); }
/// <summary>When overridden in a derived class, computes the hash value of a specified portion of a byte array by using a specified hashing algorithm. </summary> /// <param name="data">The data to be hashed. </param> /// <param name="offset">The index of the first byte in <paramref name="data" /> that is to be hashed. </param> /// <param name="count">The number of bytes to hash. </param> /// <param name="hashAlgorithm">The algorithm to use to hash the data. </param> /// <returns>The hashed data. </returns> /// <exception cref="T:System.NotImplementedException">A derived class must override this method. </exception> // Token: 0x06002170 RID: 8560 RVA: 0x000763C5 File Offset: 0x000745C5 protected virtual byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm) { throw DSA.DerivedClassMustOverride(); }