2 writes to HashLengthInBytes
System.Security.Cryptography (2)
System\Security\Cryptography\IncrementalHash.cs (2)
35HashLengthInBytes = _hash.HashSizeInBytes; 45HashLengthInBytes = _hmac.HashSizeInBytes;
31 references to HashLengthInBytes
Microsoft.AspNetCore.Components.Endpoints (2)
Builder\ResourceCollectionUrlEndpoint.cs (2)
116Span<byte> result = stackalloc byte[incrementalHash.HashLengthInBytes]; 125Span<char> fingerprintSpan = stackalloc char[(incrementalHash.HashLengthInBytes * 4 / 3) + 3];
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)
125byte[] ret = new byte[HashLengthInBytes]; 128Debug.Assert(written == HashLengthInBytes); 147/// than <see cref="HashLengthInBytes"/>. 153if (destination.Length < HashLengthInBytes) 163if (destination.Length < HashLengthInBytes) 175Debug.Assert(destination.Length >= HashLengthInBytes); 197byte[] ret = new byte[HashLengthInBytes]; 200Debug.Assert(written == HashLengthInBytes); 219/// than <see cref="HashLengthInBytes"/>. 225if (destination.Length < HashLengthInBytes) 253if (destination.Length < HashLengthInBytes) 265Debug.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];