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)
109
internal static int HashSize { get { EnsureConfig(); s_config.RuntimeDataInitialize(); return
_HashSize
; } }
665
byte[] newHash = new byte[
_HashSize
];
670
int bytesToCopy = Math.Min(
_HashSize
, bytesToWrite);
693
key = new byte[
_HashSize
];
719
byte[] hash = new byte[
_HashSize
];
830
if (buf == null || buf.Length <
_HashSize
)
836
if (length <
_HashSize
|| start < 0 || start >= length)
838
byte[] bHash = HashData(buf, modifier, start, length -
_HashSize
);
840
if (bHash[iter] != buf[start + length -
_HashSize
+ iter])
843
dataLength = length -
_HashSize
;
1134
if (
_HashSize
< 1 || _AutoGenValidationKeySize < 1) {
1152
if (
_HashSize
< 1)
1256
byte[] buf2 = new byte[bufHashed.Length -
_HashSize
];
1270
if (bufHashed.Length <=
_HashSize
)
1273
byte[] bMac = HashData(bufHashed, null, 0, bufHashed.Length -
_HashSize
);
1277
if (bMac == null || bMac.Length !=
_HashSize
)
1279
int lastPos = bufHashed.Length -
_HashSize
;
1281
return CryptoUtil.BuffersAreEqual(bMac, 0,
_HashSize
, bufHashed, lastPos,
_HashSize
);