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