Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Interop.crypt32 Class Reference

Public Member Functions

static unsafe bool CryptQueryObject (CertQueryObjectType dwObjectType, void *pvObject, ExpectedContentTypeFlags dwExpectedContentTypeFlags, ExpectedFormatTypeFlags dwExpectedFormatTypeFlags, int dwFlags, out CertEncodingType pdwMsgAndCertEncodingType, out ContentType pdwContentType, out FormatType pdwFormatType, out SafeCertStoreHandle phCertStore, out SafeCryptMsgHandle phMsg, out SafeCertContextHandle ppvContext)
 
static unsafe bool CryptQueryObject (CertQueryObjectType dwObjectType, void *pvObject, ExpectedContentTypeFlags dwExpectedContentTypeFlags, ExpectedFormatTypeFlags dwExpectedFormatTypeFlags, int dwFlags, IntPtr pdwMsgAndCertEncodingType, out ContentType pdwContentType, IntPtr pdwFormatType, IntPtr phCertStore, IntPtr phMsg, IntPtr ppvContext)
 
static unsafe bool CryptQueryObject (CertQueryObjectType dwObjectType, void *pvObject, ExpectedContentTypeFlags dwExpectedContentTypeFlags, ExpectedFormatTypeFlags dwExpectedFormatTypeFlags, int dwFlags, IntPtr pdwMsgAndCertEncodingType, out ContentType pdwContentType, IntPtr pdwFormatType, out SafeCertStoreHandle phCertStore, IntPtr phMsg, IntPtr ppvContext)
 
static bool CertGetCertificateContextProperty (SafeCertContextHandle pCertContext, CertContextPropId dwPropId, [Out] byte[] pvData, [In][Out] ref int pcbData)
 
static bool CertGetCertificateContextProperty (SafeCertContextHandle pCertContext, CertContextPropId dwPropId, out CRYPTOAPI_BLOB pvData, [In][Out] ref int pcbData)
 
static bool CertGetCertificateContextProperty (SafeCertContextHandle pCertContext, CertContextPropId dwPropId, out IntPtr pvData, [In][Out] ref int pcbData)
 
static unsafe bool CertGetCertificateContextPropertyString (SafeCertContextHandle pCertContext, CertContextPropId dwPropId, byte *pvData, ref int pcbData)
 
static unsafe bool CertSetCertificateContextProperty (SafeCertContextHandle pCertContext, CertContextPropId dwPropId, CertSetPropertyFlags dwFlags, [In] CRYPTOAPI_BLOB *pvData)
 
static unsafe bool CertSetCertificateContextProperty (SafeCertContextHandle pCertContext, CertContextPropId dwPropId, CertSetPropertyFlags dwFlags, [In] CRYPT_KEY_PROV_INFO *pvData)
 
static bool CertSetCertificateContextProperty (SafeCertContextHandle pCertContext, CertContextPropId dwPropId, CertSetPropertyFlags dwFlags, [In] SafeNCryptKeyHandle keyHandle)
 
static SafeCertContextHandle CertDuplicateCertificateContext (IntPtr pCertContext)
 
static SafeX509ChainHandle CertDuplicateCertificateChain (IntPtr pChainContext)
 
static SafeCertContextHandleWithKeyContainerDeletion CertDuplicateCertificateContextWithKeyContainerDeletion (IntPtr pCertContext)
 
static bool CertAddCertificateContextToStore (SafeCertStoreHandle hCertStore, SafeCertContextHandle pCertContext, CertStoreAddDisposition dwAddDisposition, IntPtr ppStoreContext)
 
static bool CertAddCertificateLinkToStore (SafeCertStoreHandle hCertStore, SafeCertContextHandle pCertContext, CertStoreAddDisposition dwAddDisposition, IntPtr ppStoreContext)
 
static SafeCertStoreHandle PFXImportCertStore ([In] ref CRYPTOAPI_BLOB pPFX, SafePasswordHandle password, PfxCertStoreFlags dwFlags)
 
static unsafe bool CryptMsgGetParam (SafeCryptMsgHandle hCryptMsg, CryptMessageParameterType dwParamType, int dwIndex, byte *pvData, [In][Out] ref int pcbData)
 
static bool CryptMsgGetParam (SafeCryptMsgHandle hCryptMsg, CryptMessageParameterType dwParamType, int dwIndex, out int pvData, [In][Out] ref int pcbData)
 
static bool CertSerializeCertificateStoreElement (SafeCertContextHandle pCertContext, int dwFlags, [Out] byte[] pbElement, [In][Out] ref int pcbElement)
 
static bool PFXExportCertStore (SafeCertStoreHandle hStore, [In][Out] ref CRYPTOAPI_BLOB pPFX, SafePasswordHandle szPassword, PFXExportFlags dwFlags)
 
static bool CertStrToName (CertEncodingType dwCertEncodingType, string pszX500, CertNameStrTypeAndFlags dwStrType, IntPtr pvReserved, [Out] byte[] pbEncoded, [In][Out] ref int pcbEncoded, IntPtr ppszError)
 
static unsafe bool CryptDecodeObjectPointer (CertEncodingType dwCertEncodingType, [MarshalAs(UnmanagedType.LPStr)] string lpszStructType, [In] byte[] pbEncoded, int cbEncoded, CryptDecodeObjectFlags dwFlags, [Out] void *pvStructInfo, [In][Out] ref int pcbStructInfo)
 
static unsafe bool CryptEncodeObject (CertEncodingType dwCertEncodingType, [MarshalAs(UnmanagedType.LPStr)] string lpszStructType, void *pvStructInfo, [Out] byte[] pbEncoded, [In][Out] ref int pcbEncoded)
 
static void CertFreeCertificateChainEngine (IntPtr hChainEngine)
 
static unsafe bool CertGetCertificateChain (IntPtr hChainEngine, SafeCertContextHandle pCertContext, FILETIME *pTime, SafeCertStoreHandle hStore, [In] ref CERT_CHAIN_PARA pChainPara, CertChainFlags dwFlags, IntPtr pvReserved, out SafeX509ChainHandle ppChainContext)
 
static bool CryptHashPublicKeyInfo (IntPtr hCryptProv, int algId, int dwFlags, CertEncodingType dwCertEncodingType, [In] ref CERT_PUBLIC_KEY_INFO pInfo, [Out] byte[] pbComputedHash, [In][Out] ref int pcbComputedHash)
 
static bool CertSaveStore (SafeCertStoreHandle hCertStore, CertEncodingType dwMsgAndCertEncodingType, CertStoreSaveAs dwSaveAs, CertStoreSaveTo dwSaveTo, ref CRYPTOAPI_BLOB pvSaveToPara, int dwFlags)
 
static unsafe int CertVerifyTimeValidity ([In] ref FILETIME pTimeToVerify, [In] CERT_INFO *pCertInfo)
 
static unsafe CERT_EXTENSIONCertFindExtension ([MarshalAs(UnmanagedType.LPStr)] string pszObjId, int cExtensions, CERT_EXTENSION *rgExtensions)
 
static unsafe bool CertGetIntendedKeyUsage (CertEncodingType dwCertEncodingType, CERT_INFO *pCertInfo, out X509KeyUsageFlags pbKeyUsage, int cbKeyUsage)
 
static unsafe bool CertGetValidUsages (int cCerts, [In] ref SafeCertContextHandle rghCerts, out int cNumOIDs, [Out] void *rghOIDs, [In][Out] ref int pcbOIDs)
 
static bool CertControlStore (SafeCertStoreHandle hCertStore, CertControlStoreFlags dwFlags, CertControlStoreType dwControlType, IntPtr pvCtrlPara)
 
static unsafe bool CertDeleteCertificateFromStore (CERT_CONTEXT *pCertContext)
 
static void CertFreeCertificateChain (IntPtr pChainContext)
 
static unsafe bool CryptImportPublicKeyInfoEx2 (CertEncodingType dwCertEncodingType, CERT_PUBLIC_KEY_INFO *pInfo, CryptImportPublicKeyInfoFlags dwFlags, void *pvAuxInfo, out Microsoft.Win32.SafeHandles.SafeBCryptKeyHandle phKey)
 
static bool CryptAcquireCertificatePrivateKey (SafeCertContextHandle pCert, CryptAcquireFlags dwFlags, IntPtr pvParameters, out SafeNCryptKeyHandle phCryptProvOrNCryptKey, out int pdwKeySpec, out bool pfCallerFreeProvOrNCryptKey)
 

Static Public Member Functions

static unsafe string CertGetNameString (SafeCertContextHandle certContext, CertNameType certNameType, CertNameFlags certNameFlags, CertNameStringType strType)
 
static SafeCertStoreHandle CertOpenStore (CertStoreProvider lpszStoreProvider, CertEncodingType dwMsgAndCertEncodingType, IntPtr hCryptProv, CertStoreFlags dwFlags, string pvPara)
 
static unsafe bool CertEnumCertificatesInStore (SafeCertStoreHandle hCertStore, [NotNull] ref SafeCertContextHandle pCertContext)
 
static bool CryptDecodeObject (CertEncodingType dwCertEncodingType, CryptDecodeObjectStructType lpszStructType, byte[] pbEncoded, int cbEncoded, CryptDecodeObjectFlags dwFlags, byte[] pvStructInfo, ref int pcbStructInfo)
 
static unsafe bool CryptDecodeObjectPointer (CertEncodingType dwCertEncodingType, CryptDecodeObjectStructType lpszStructType, byte[] pbEncoded, int cbEncoded, CryptDecodeObjectFlags dwFlags, void *pvStructInfo, ref int pcbStructInfo)
 
static unsafe bool CryptEncodeObject (CertEncodingType dwCertEncodingType, CryptDecodeObjectStructType lpszStructType, void *pvStructInfo, byte[] pbEncoded, ref int pcbEncoded)
 
static unsafe byte[] EncodeObject (CryptDecodeObjectStructType lpszStructType, void *decoded)
 
static unsafe byte[] EncodeObject (string lpszStructType, void *decoded)
 
static unsafe bool CertFindCertificateInStore (SafeCertStoreHandle hCertStore, CertFindType dwFindType, void *pvFindPara, [NotNull] ref SafeCertContextHandle pCertContext)
 
static bool CertVerifyCertificateChainPolicy (ChainPolicy pszPolicyOID, SafeX509ChainHandle pChainContext, ref CERT_CHAIN_POLICY_PARA pPolicyPara, ref CERT_CHAIN_POLICY_STATUS pPolicyStatus)
 

Package Functions

static SafeCertStoreHandle CertDuplicateStore (IntPtr hCertStore)
 

Static Package Functions

static SafeChainEngineHandle CertCreateCertificateChainEngine (ref CERT_CHAIN_ENGINE_CONFIG config)
 

Private Member Functions

static unsafe int CertGetNameString (SafeCertContextHandle pCertContext, CertNameType dwType, CertNameFlags dwFlags, in CertNameStringType pvTypePara, char *pszNameString, int cchNameString)
 
static SafeCertStoreHandle CertOpenStore (IntPtr lpszStoreProvider, CertEncodingType dwMsgAndCertEncodingType, IntPtr hCryptProv, CertStoreFlags dwFlags, [MarshalAs(UnmanagedType.LPWStr)] string pvPara)
 
static unsafe CERT_CONTEXTCertEnumCertificatesInStore (SafeCertStoreHandle hCertStore, CERT_CONTEXT *pPrevCertContext)
 
static bool CryptDecodeObject (CertEncodingType dwCertEncodingType, IntPtr lpszStructType, [In] byte[] pbEncoded, int cbEncoded, CryptDecodeObjectFlags dwFlags, [Out] byte[] pvStructInfo, [In][Out] ref int pcbStructInfo)
 
static unsafe bool CryptDecodeObjectPointer (CertEncodingType dwCertEncodingType, IntPtr lpszStructType, [In] byte[] pbEncoded, int cbEncoded, CryptDecodeObjectFlags dwFlags, [Out] void *pvStructInfo, [In][Out] ref int pcbStructInfo)
 
static unsafe bool CryptEncodeObject (CertEncodingType dwCertEncodingType, IntPtr lpszStructType, void *pvStructInfo, [Out] byte[] pbEncoded, [In][Out] ref int pcbEncoded)
 
static bool CertCreateCertificateChainEngine (ref CERT_CHAIN_ENGINE_CONFIG pConfig, out SafeChainEngineHandle hChainEngineHandle)
 
static unsafe SafeCertContextHandle CertFindCertificateInStore (SafeCertStoreHandle hCertStore, CertEncodingType dwCertEncodingType, CertFindFlags dwFindFlags, CertFindType dwFindType, void *pvFindPara, CERT_CONTEXT *pPrevCertContext)
 
static bool CertVerifyCertificateChainPolicy (IntPtr pszPolicyOID, SafeX509ChainHandle pChainContext, [In] ref CERT_CHAIN_POLICY_PARA pPolicyPara, [In][Out] ref CERT_CHAIN_POLICY_STATUS pPolicyStatus)
 

Detailed Description

Definition at line 19 of file Interop.cs.


The documentation for this class was generated from the following file: