7 references to TryGetCertHash
System.Net.Quic (2)
System\Net\Quic\Internal\MsQuicConfiguration.Cache.cs (2)
66
bool success = certificate.
TryGetCertHash
(HashAlgorithmName.SHA512, certificateThumbprints.AsSpan(0, ThumbprintSize), out _);
75
bool success = intermediate.
TryGetCertHash
(HashAlgorithmName.SHA512, certificateThumbprints.AsSpan(certCount * ThumbprintSize, ThumbprintSize), out _);
System.Net.Security (2)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (2)
56
bool success = certContext.TargetCertificate.
TryGetCertHash
(HashAlgorithmName.SHA512, certificateThumbprints.AsSpan(0, ThumbprintSize), out _);
62
success = intermediate.
TryGetCertHash
(HashAlgorithmName.SHA512, certificateThumbprints.AsSpan(certCount * ThumbprintSize, ThumbprintSize), out _);
System.Security.Cryptography (1)
System\Security\Cryptography\X509Certificates\ManagedCertificateFinder.cs (1)
52
if (!certificate.
TryGetCertHash
(HashAlgorithmName.SHA1, hashBuffer, out int hashBytesWritten) ||
System.Security.Cryptography.Pkcs (2)
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (2)
494
if (!signerCert.
TryGetCertHash
(HashAlgorithmName.SHA1, thumbprint, out int written) ||
526
if (signerCert.
TryGetCertHash
(alg, thumbprint, out int written))