2 writes to HashLengthInBytes
System.Security.Cryptography (2)
System\Security\Cryptography\IncrementalHash.cs (2)
35HashLengthInBytes = _hash.HashSizeInBytes; 45HashLengthInBytes = _hmac.HashSizeInBytes;
29 references to HashLengthInBytes
System.Net.Security (2)
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (2)
684hmacMic.GetHashAndReset(MemoryMarshal.CreateSpan(ref response.Mic[0], hmacMic.HashLengthInBytes)); 726Span<byte> hmacResult = stackalloc byte[hmac.HashLengthInBytes];
System.Security.Cryptography (19)
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (4)
321Debug.Assert(hasher.HashLengthInBytes == hLen); 425Debug.Assert(hasher.HashLengthInBytes == hLen); 524Debug.Assert(hasher.HashLengthInBytes == hLen); 587int hLen = hasher.HashLengthInBytes;
System\Security\Cryptography\IncrementalHash.cs (12)
126byte[] ret = new byte[HashLengthInBytes]; 129Debug.Assert(written == HashLengthInBytes); 148/// than <see cref="HashLengthInBytes"/>. 154if (destination.Length < HashLengthInBytes) 164if (destination.Length < HashLengthInBytes) 176Debug.Assert(destination.Length >= HashLengthInBytes); 198byte[] ret = new byte[HashLengthInBytes]; 201Debug.Assert(written == HashLengthInBytes); 220/// than <see cref="HashLengthInBytes"/>. 226if (destination.Length < HashLengthInBytes) 254if (destination.Length < HashLengthInBytes) 266Debug.Assert(destination.Length >= HashLengthInBytes);
System\Security\Cryptography\Rfc2898DeriveBytes.cs (2)
90_blockSize = _hmac.HashLengthInBytes; 118_blockSize = _hmac.HashLengthInBytes;
System\Security\Cryptography\SP800108HmacCounterKdfImplementationManaged.cs (1)
60if (destination.Length >= hash.HashLengthInBytes)
System.Security.Cryptography.Cose (8)
System\Security\Cryptography\Cose\CoseHelpers.cs (4)
131Debug.Assert(hasher.HashLengthInBytes <= 512 / 8); // largest hash we can get (SHA512). 132Span<byte> hash = stackalloc byte[hasher.HashLengthInBytes]; 152Debug.Assert(hasher.HashLengthInBytes <= 512 / 8); // largest hash we can get (SHA512). 153Span<byte> hash = stackalloc byte[hasher.HashLengthInBytes];
System\Security\Cryptography\Cose\CoseSign1Message.cs (2)
746Debug.Assert(hasher.HashLengthInBytes <= 512 / 8); // largest hash we can get (SHA512). 747Span<byte> hash = stackalloc byte[hasher.HashLengthInBytes];
System\Security\Cryptography\Cose\CoseSignature.cs (2)
454Debug.Assert(hasher.HashLengthInBytes <= 512 / 8); // largest hash we can get (SHA512). 455Span<byte> hash = stackalloc byte[hasher.HashLengthInBytes];