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