Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Thumbprint

byte [] Internal.Cryptography.Pal.CertificatePal.Thumbprint
get

Implements Internal.Cryptography.ICertificatePalCore.

Definition at line 27 of file CertificatePal.cs.

28 {
29 get
30 {
31 int pcbData = 0;
32 if (!global::Interop.crypt32.CertGetCertificateContextProperty(_certContext, CertContextPropId.CERT_SHA1_HASH_PROP_ID, null, ref pcbData))
33 {
34 throw Marshal.GetHRForLastWin32Error().ToCryptographicException();
35 }
36 byte[] array = new byte[pcbData];
37 if (!global::Interop.crypt32.CertGetCertificateContextProperty(_certContext, CertContextPropId.CERT_SHA1_HASH_PROP_ID, array, ref pcbData))
38 {
39 throw Marshal.GetHRForLastWin32Error().ToCryptographicException();
40 }
41 return array;
42 }
43 }