15 references to HashSizeInBytes
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\TypeNameHash.cs (1)
29Span<byte> typeNameHashBytes = stackalloc byte[SHA256.HashSizeInBytes];
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
TypeNameHashTest.cs (1)
16private const int ExpectedHashLength = SHA256.HashSizeInBytes * 2;
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs (2)
215Span<byte> hashBuffer = stackalloc byte[SHA256.HashSizeInBytes]; // SHA256 is the largest hash produced 222Debug.Assert(written == SHA256.HashSizeInBytes);
System.Security.Cryptography (11)
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (1)
84digestLengthInBytes = SHA256.HashSizeInBytes;
System\Security\Cryptography\CryptographicOperations.cs (1)
778return SHA256.HashSizeInBytes;
System\Security\Cryptography\SHA256.cs (6)
64byte[] buffer = GC.AllocateUninitializedArray<byte>(HashSizeInBytes); 105if (destination.Length < HashSizeInBytes) 112Debug.Assert(bytesWritten == HashSizeInBytes); 140if (destination.Length < HashSizeInBytes) 167return LiteHashProvider.HashStream(HashAlgorithmNames.SHA256, HashSizeInBytes, source); 225if (destination.Length < HashSizeInBytes)
System\Security\Cryptography\SHA256CryptoServiceProvider.cs (1)
29Span<byte> destination = stackalloc byte[HashSizeInBytes];
System\Security\Cryptography\X509Certificates\OpenSslCrlCache.cs (1)
278Span<byte> hash = stackalloc byte[SHA256.HashSizeInBytes];
System\Security\Cryptography\X509Certificates\RSAPssX509SignatureGenerator.cs (1)
40cbSalt = SHA256.HashSizeInBytes;