10 writes to _HashSize
System.Web (10)
Configuration\MachineKeySection.cs (10)
1064_HashSize = SHA1_HASH_SIZE; 1069_HashSize = SHA1_HASH_SIZE; 1075_HashSize = MD5_HASH_SIZE; 1080_HashSize = HMACSHA256_HASH_SIZE; 1085_HashSize = HMACSHA384_HASH_SIZE; 1090_HashSize = HMACSHA512_HASH_SIZE; 1116_HashSize = 0; 1125_HashSize = RoundupNumBitsToNumBytes(alg.HashSize); 1142_HashSize = bHash.Length; 1153_HashSize = HMACSHA512_HASH_SIZE;
19 references to _HashSize
System.Web (19)
Configuration\MachineKeySection.cs (19)
109internal static int HashSize { get { EnsureConfig(); s_config.RuntimeDataInitialize(); return _HashSize; } } 665byte[] newHash = new byte[_HashSize]; 670int bytesToCopy = Math.Min(_HashSize, bytesToWrite); 693key = new byte[_HashSize]; 719byte[] hash = new byte[_HashSize]; 830if (buf == null || buf.Length < _HashSize) 836if (length < _HashSize || start < 0 || start >= length) 838byte[] bHash = HashData(buf, modifier, start, length - _HashSize); 840if (bHash[iter] != buf[start + length - _HashSize + iter]) 843dataLength = length - _HashSize; 1134if (_HashSize < 1 || _AutoGenValidationKeySize < 1) { 1152if (_HashSize < 1) 1256byte[] buf2 = new byte[bufHashed.Length - _HashSize]; 1270if (bufHashed.Length <= _HashSize) 1273byte[] bMac = HashData(bufHashed, null, 0, bufHashed.Length - _HashSize); 1277if (bMac == null || bMac.Length != _HashSize) 1279int lastPos = bufHashed.Length - _HashSize; 1281return CryptoUtil.BuffersAreEqual(bMac, 0, _HashSize, bufHashed, lastPos, _HashSize);