internal extern static bool CertStrToName(CertEncodingType dwCertEncodingType,
                                             [MarshalAs(UnmanagedType.LPWStr)]string pszX500,
                                             StringType dwStrType,
                                             IntPtr pvReserved,
                                             byte[] pbEncoded,
                                             [In, Out]ref int pcbEncoded,
                                             [MarshalAs(UnmanagedType.LPWStr)]ref StringBuilder ppszError);
 internal static unsafe partial SafeCertContextHandle CertFindCertificateInStore(
     SafeCertStoreHandle hCertStore,
     CertEncodingType dwCertEncodingType,
     CertFindFlags dwFindFlags,
     CertFindType dwFindType,
     void *pvFindPara,
     CERT_CONTEXT *pPrevCertContext);
Esempio n. 3
0
 internal static unsafe partial bool CryptDecodeObjectPointer(
     CertEncodingType dwCertEncodingType,
     [MarshalAs(UnmanagedType.LPStr)] string lpszStructType,
     byte[] pbEncoded, int cbEncoded,
     CryptDecodeObjectFlags dwFlags,
     void *pvStructInfo,
     ref int pcbStructInfo);
Esempio n. 4
0
 internal static extern IntPtr CertFindCertificateInStore(
     IntPtr hCertStore,
     CertEncodingType dwCertEncodingType,
     CertFindFlags dwFindFlags,
     CertFindType dwFindType,
     IntPtr pszFindPara,
     IntPtr pPrevCertCntxt);
Esempio n. 5
0
 public static partial bool CertSaveStore(
     SafeCertStoreHandle hCertStore,
     CertEncodingType dwMsgAndCertEncodingType,
     CertStoreSaveAs dwSaveAs,
     CertStoreSaveTo dwSaveTo,
     ref DATA_BLOB pvSaveToPara,
     int dwFlags);
 internal static extern bool CertStrToName(CertEncodingType dwCertEncodingType,
                                           [MarshalAs(UnmanagedType.LPWStr)] string pszX500,
                                           StringType dwStrType,
                                           IntPtr pvReserved,
                                           byte[] pbEncoded,
                                           [In, Out] ref int pcbEncoded,
                                           [MarshalAs(UnmanagedType.LPWStr)] ref StringBuilder ppszError);
Esempio n. 7
0
 internal static partial bool CryptHashPublicKeyInfo(
     IntPtr hCryptProv,
     int algId,
     int dwFlags,
     CertEncodingType dwCertEncodingType,
     ref CERT_PUBLIC_KEY_INFO pInfo,
     byte[] pbComputedHash,
     ref int pcbComputedHash);
Esempio n. 8
0
 public static extern IntPtr CertOpenStore
 (
     [In, MarshalAs(UnmanagedType.LPStr)] string lpszStoreProvider,
     [In, MarshalAs(UnmanagedType.U4)] CertEncodingType CertEncodingType,
     [In, MarshalAs(UnmanagedType.SysInt)] IntPtr hCryptProv,
     [In, MarshalAs(UnmanagedType.U4)] CertOpenStoreFlags dwFlags,
     [In] ref CRYPTOAPI_BLOB pvPara
 );
Esempio n. 9
0
 internal static unsafe partial bool CryptDecodeObjectPointer(
     CertEncodingType dwCertEncodingType,
     IntPtr lpszStructType,
     byte[] pbEncoded,
     int cbEncoded,
     CryptDecodeObjectFlags dwFlags,
     void *pvStructInfo,
     ref int pcbStructInfo);
Esempio n. 10
0
 public static unsafe extern bool CryptQueryObject(
     CertQueryObjectType dwObjectType,
     void* pvObject,
     ExpectedContentTypeFlags dwExpectedContentTypeFlags,
     ExpectedFormatTypeFlags dwExpectedFormatTypeFlags,
     int dwFlags, // reserved - always pass 0
     out CertEncodingType pdwMsgAndCertEncodingType,
     out ContentType pdwContentType,
     out FormatType pdwFormatType,
     out SafeCertStoreHandle phCertStore,
     out SafeCryptMsgHandle phMsg,
     out SafeCertContextHandle ppvContext
     );
Esempio n. 11
0
 internal static unsafe partial bool CryptQueryObject(
     CertQueryObjectType dwObjectType,
     void* pvObject,
     ExpectedContentTypeFlags dwExpectedContentTypeFlags,
     ExpectedFormatTypeFlags dwExpectedFormatTypeFlags,
     int dwFlags, // reserved - always pass 0
     out CertEncodingType pdwMsgAndCertEncodingType,
     out ContentType pdwContentType,
     out FormatType pdwFormatType,
     out SafeCertStoreHandle phCertStore,
     out SafeCryptMsgHandle phMsg,
     out SafeCertContextHandle ppvContext
     );
Esempio n. 12
0
 internal static extern bool CryptQueryObject(
     CertQueryObjectType dwObjectType,
     [MarshalAs(UnmanagedType.LPWStr)]
     string pvObject,
     ExpectedContentTypeFlags dwExpectedContentTypeFlags,
     ExpectedFormatTypeFlags dwExpectedFormatTypeFlags,
     int dwFlags, // reserved - always pass 0
     out CertEncodingType pdwMsgAndCertEncodingType,
     out ContentType pdwContentType,
     out FormatType pdwFormatType,
     out IntPtr phCertStore,
     out IntPtr phMsg,
     out IntPtr ppvContext
     );
Esempio n. 13
0
 public static bool CryptFormatObject(CertEncodingType dwCertEncodingType, FormatObjectType dwFormatType, FormatObjectStringType dwFormatStrType, IntPtr pFormatStruct, FormatObjectStructType lpszStructType, byte[] pbEncoded, int cbEncoded, StringBuilder pbFormat, ref int pcbFormat)
 {
     return CryptFormatObject(dwCertEncodingType, dwFormatType, dwFormatStrType, pFormatStruct, (IntPtr)lpszStructType, pbEncoded, cbEncoded, pbFormat, ref pcbFormat);
 }
Esempio n. 14
0
 public static extern unsafe bool CertGetIntendedKeyUsage(CertEncodingType dwCertEncodingType, CERT_INFO *pCertInfo, out X509KeyUsageFlags pbKeyUsage, int cbKeyUsage);
Esempio n. 15
0
 public static extern 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);
Esempio n. 16
0
 private static extern unsafe bool CryptEncodeObject(CertEncodingType dwCertEncodingType, IntPtr lpszStructType, void *pvStructInfo, [Out] byte[] pbEncoded, [In, Out] ref int pcbEncoded);
Esempio n. 17
0
 private static extern unsafe bool CryptDecodeObjectPointer(CertEncodingType dwCertEncodingType, IntPtr lpszStructType, [In] byte[] pbEncoded, int cbEncoded, CryptDecodeObjectFlags dwFlags, [Out] void *pvStructInfo, [In, Out] ref int pcbStructInfo);
Esempio n. 18
0
 public static unsafe bool CryptFormatObject(CertEncodingType dwCertEncodingType, FormatObjectType dwFormatType, FormatObjectStringType dwFormatStrType, IntPtr pFormatStruct, FormatObjectStructType lpszStructType, byte[] pbEncoded, int cbEncoded, byte *pbFormat, ref int pcbFormat)
 {
     return(CryptFormatObject(dwCertEncodingType, dwFormatType, dwFormatStrType, pFormatStruct, (IntPtr)lpszStructType, pbEncoded, cbEncoded, pbFormat, ref pcbFormat));
 }
Esempio n. 19
0
 private static extern unsafe bool CryptEncodeObject(CertEncodingType dwCertEncodingType, IntPtr lpszStructType, void* pvStructInfo, [Out] byte[] pbEncoded, [In, Out] ref int pcbEncoded);
Esempio n. 20
0
 public static unsafe bool CryptEncodeObject(CertEncodingType dwCertEncodingType, CryptDecodeObjectStructType lpszStructType, void* pvStructInfo, byte[] pbEncoded, ref int pcbEncoded)
 {
     return CryptEncodeObject(dwCertEncodingType, (IntPtr)lpszStructType, pvStructInfo, pbEncoded, ref pcbEncoded);
 }
Esempio n. 21
0
 public static extern 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);
Esempio n. 22
0
 private static extern unsafe bool CryptDecodeObjectPointer(CertEncodingType dwCertEncodingType, IntPtr lpszStructType, [In] byte[] pbEncoded, int cbEncoded, CryptDecodeObjectFlags dwFlags, [Out] void* pvStructInfo, [In, Out] ref int pcbStructInfo);
Esempio n. 23
0
 public static unsafe bool CryptDecodeObjectPointer(CertEncodingType dwCertEncodingType, CryptDecodeObjectStructType lpszStructType, byte[] pbEncoded, int cbEncoded, CryptDecodeObjectFlags dwFlags, void* pvStructInfo, ref int pcbStructInfo)
 {
     return CryptDecodeObjectPointer(dwCertEncodingType, (IntPtr)lpszStructType, pbEncoded, cbEncoded, dwFlags, pvStructInfo, ref pcbStructInfo);
 }
Esempio n. 24
0
 private static extern bool CryptFormatObject(CertEncodingType dwCertEncodingType, FormatObjectType dwFormatType, FormatObjectStringType dwFormatStrType, IntPtr pFormatStruct, IntPtr lpszStructType, [In] byte[] pbEncoded, int cbEncoded, [Out] StringBuilder pbFormat, [In, Out] ref int pcbFormat);
Esempio n. 25
0
 private static extern SafeCertStoreHandle CertOpenStore(IntPtr lpszStoreProvider, CertEncodingType dwMsgAndCertEncodingType, IntPtr hCryptProv, CertStoreFlags dwFlags, [MarshalAs(UnmanagedType.LPWStr)] String pvPara);
Esempio n. 26
0
 public static unsafe extern bool CryptImportPublicKeyInfoEx2(CertEncodingType dwCertEncodingType, CERT_PUBLIC_KEY_INFO* pInfo, int dwFlags, void* pvAuxInfo, out SafeBCryptKeyHandle phKey);
Esempio n. 27
0
 public static extern unsafe bool CryptEncodeObject(CertEncodingType dwCertEncodingType, [MarshalAs(UnmanagedType.LPStr)] String lpszStructType, void* pvStructInfo, [Out] byte[] pbEncoded, [In, Out] ref int pcbEncoded);
Esempio n. 28
0
 public static extern bool CertStrToName(CertEncodingType dwCertEncodingType, string pszX500, CertNameStrTypeAndFlags dwStrType, IntPtr pvReserved, [Out] byte[] pbEncoded, [In, Out] ref int pcbEncoded, IntPtr ppszError);
Esempio n. 29
0
 private static partial SafeCertStoreHandle CertOpenStore(IntPtr lpszStoreProvider, CertEncodingType dwMsgAndCertEncodingType, IntPtr hCryptProv, CertStoreFlags dwFlags, [MarshalAs(UnmanagedType.LPWStr)] string?pvPara);
Esempio n. 30
0
 private static extern unsafe bool CryptFormatObject(CertEncodingType dwCertEncodingType, FormatObjectType dwFormatType, FormatObjectStringType dwFormatStrType, IntPtr pFormatStruct, IntPtr lpszStructType, [In] byte[] pbEncoded, int cbEncoded, byte *pbFormat, [In, Out] ref int pcbFormat);
Esempio n. 31
0
 private static partial bool CryptDecodeObject(CertEncodingType dwCertEncodingType, IntPtr lpszStructType, byte[] pbEncoded, int cbEncoded, CryptDecodeObjectFlags dwFlags, byte[]?pvStructInfo, ref int pcbStructInfo);
Esempio n. 32
0
 public static extern 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);
Esempio n. 33
0
 public static unsafe bool CryptEncodeObject(CertEncodingType dwCertEncodingType, CryptDecodeObjectStructType lpszStructType, void *pvStructInfo, byte[]?pbEncoded, ref int pcbEncoded)
 {
     return(CryptEncodeObject(dwCertEncodingType, (IntPtr)lpszStructType, pvStructInfo, pbEncoded, ref pcbEncoded));
 }
Esempio n. 34
0
 public static extern unsafe bool CryptEncodeObject(CertEncodingType dwCertEncodingType, [MarshalAs(UnmanagedType.LPStr)] string lpszStructType, void *pvStructInfo, [Out] byte[] pbEncoded, [In, Out] ref int pcbEncoded);
Esempio n. 35
0
 public static unsafe partial bool CryptEncodeObject(CertEncodingType dwCertEncodingType, [MarshalAs(UnmanagedType.LPStr)] string lpszStructType, void *pvStructInfo, byte[]?pbEncoded, ref int pcbEncoded);
Esempio n. 36
0
 public static extern bool CertSaveStore(SafeCertStoreHandle hCertStore, CertEncodingType dwMsgAndCertEncodingType, CertStoreSaveAs dwSaveAs, CertStoreSaveTo dwSaveTo, ref CRYPTOAPI_BLOB pvSaveToPara, int dwFlags);
Esempio n. 37
0
 public static extern int CertNameToStr(CertEncodingType dwCertEncodingType, [In] ref CRYPTOAPI_BLOB pName, CertNameStrTypeAndFlags dwStrType, StringBuilder psz, int csz);
Esempio n. 38
0
 public static SafeCertStoreHandle CertOpenStore(CertStoreProvider lpszStoreProvider, CertEncodingType dwMsgAndCertEncodingType, IntPtr hCryptProv, CertStoreFlags dwFlags, string?pvPara)
 {
     return(CertOpenStore((IntPtr)lpszStoreProvider, dwMsgAndCertEncodingType, hCryptProv, dwFlags, pvPara));
 }
Esempio n. 39
0
 public static extern bool CertStrToName(CertEncodingType dwCertEncodingType, String pszX500, CertNameStrTypeAndFlags dwStrType, IntPtr pvReserved, [Out] byte[] pbEncoded, [In, Out] ref int pcbEncoded, IntPtr ppszError);
Esempio n. 40
0
 public static partial bool CertStrToName(CertEncodingType dwCertEncodingType, string pszX500, CertNameStrTypeAndFlags dwStrType, IntPtr pvReserved, byte[]?pbEncoded, ref int pcbEncoded, IntPtr ppszError);
Esempio n. 41
0
 public static extern 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);
Esempio n. 42
0
 public static unsafe bool CryptDecodeObjectPointer(CertEncodingType dwCertEncodingType, CryptDecodeObjectStructType lpszStructType, byte[] pbEncoded, int cbEncoded, CryptDecodeObjectFlags dwFlags, void *pvStructInfo, ref int pcbStructInfo)
 {
     return(CryptDecodeObjectPointer(dwCertEncodingType, (IntPtr)lpszStructType, pbEncoded, cbEncoded, dwFlags, pvStructInfo, ref pcbStructInfo));
 }
Esempio n. 43
0
 public static extern bool CertSaveStore(SafeCertStoreHandle hCertStore, CertEncodingType dwMsgAndCertEncodingType, CertStoreSaveAs dwSaveAs, CertStoreSaveTo dwSaveTo, ref CRYPTOAPI_BLOB pvSaveToPara, int dwFlags);
Esempio n. 44
0
 private static unsafe partial bool CryptEncodeObject(CertEncodingType dwCertEncodingType, IntPtr lpszStructType, void *pvStructInfo, byte[]?pbEncoded, ref int pcbEncoded);
Esempio n. 45
0
 private static unsafe extern SafeCertContextHandle CertFindCertificateInStore(SafeCertStoreHandle hCertStore, CertEncodingType dwCertEncodingType, CertFindFlags dwFindFlags, CertFindType dwFindType, void* pvFindPara, CERT_CONTEXT* pPrevCertContext);
Esempio n. 46
0
 public static unsafe partial bool CryptImportPublicKeyInfoEx2(CertEncodingType dwCertEncodingType, CERT_PUBLIC_KEY_INFO *pInfo, CryptImportPublicKeyInfoFlags dwFlags, void *pvAuxInfo, out SafeBCryptKeyHandle phKey);
Esempio n. 47
0
 public static unsafe extern bool CertGetIntendedKeyUsage(CertEncodingType dwCertEncodingType, CERT_INFO* pCertInfo, out X509KeyUsageFlags pbKeyUsage, int cbKeyUsage);
Esempio n. 48
0
 internal static unsafe partial bool CertGetIntendedKeyUsage(
     CertEncodingType dwCertEncodingType,
     CERT_INFO *pCertInfo,
     out X509KeyUsageFlags pbKeyUsage,
     int cbKeyUsage);
Esempio n. 49
0
 public static SafeCertStoreHandle CertOpenStore(CertStoreProvider lpszStoreProvider, CertEncodingType dwMsgAndCertEncodingType, IntPtr hCryptProv, CertStoreFlags dwFlags, String pvPara)
 {
     return CertOpenStore((IntPtr)lpszStoreProvider, dwMsgAndCertEncodingType, hCryptProv, dwFlags, pvPara);
 }