17 references to HashSizeInBytes
System.Security.Cryptography (17)
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (1)
81digestLengthInBytes = SHA1.HashSizeInBytes;
System\Security\Cryptography\CryptographicOperations.cs (1)
780return SHA1.HashSizeInBytes;
System\Security\Cryptography\SHA1.cs (6)
65byte[] buffer = GC.AllocateUninitializedArray<byte>(HashSizeInBytes); 105if (destination.Length < HashSizeInBytes) 112Debug.Assert(bytesWritten == HashSizeInBytes); 140if (destination.Length < HashSizeInBytes) 167return LiteHashProvider.HashStream(HashAlgorithmNames.SHA1, HashSizeInBytes, source); 225if (destination.Length < HashSizeInBytes)
System\Security\Cryptography\SHA1CryptoServiceProvider.cs (1)
29Span<byte> destination = stackalloc byte[HashSizeInBytes];
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (5)
45if (thumbprint.Length != SHA1.HashSizeInBytes) 50Span<byte> hashBuffer = stackalloc byte[SHA1.HashSizeInBytes]; 53hashBytesWritten != SHA1.HashSizeInBytes) 295certKeyId = stackalloc byte[SHA1.HashSizeInBytes]; 298Debug.Assert(written == SHA1.HashSizeInBytes);
System\Security\Cryptography\X509Certificates\X509SubjectKeyIdentifierExtension.cs (3)
172Span<byte> sha1 = stackalloc byte[SHA1.HashSizeInBytes]; 174Debug.Assert(written == SHA1.HashSizeInBytes); 180byte[] shortSha1 = sha1.Slice(SHA1.HashSizeInBytes - 8).ToArray();