protected HashData ( byte data, int offset, int count, HashAlgorithmName hashAlgorithm ) : byte[] | ||
data | byte | |
offset | int | |
count | int | |
hashAlgorithm | HashAlgorithmName | |
Результат | byte[] |
protected override byte[] HashData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
{
// we're sealed and the base should have checked this already
Debug.Assert(data != null);
Debug.Assert(count >= 0 && count <= data.Length);
Debug.Assert(offset >= 0 && offset <= data.Length - count);
Debug.Assert(!string.IsNullOrEmpty(hashAlgorithm.Name));
using (HashAlgorithm hash = GetHashAlgorithm(hashAlgorithm))
{
return hash.ComputeHash(data, offset, count);
}
}
RSACryptoServiceProvider::HashData ( |