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);
Exemple #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);
Exemple #4
0
 internal static extern IntPtr CertFindCertificateInStore(
     IntPtr hCertStore,
     CertEncodingType dwCertEncodingType,
     CertFindFlags dwFindFlags,
     CertFindType dwFindType,
     IntPtr pszFindPara,
     IntPtr pPrevCertCntxt);
Exemple #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);
Exemple #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);
Exemple #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
 );
Exemple #9
0
 internal static unsafe partial bool CryptDecodeObjectPointer(
     CertEncodingType dwCertEncodingType,
     IntPtr lpszStructType,
     byte[] pbEncoded,
     int cbEncoded,
     CryptDecodeObjectFlags dwFlags,
     void *pvStructInfo,
     ref int pcbStructInfo);
Exemple #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
     );
Exemple #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
     );
Exemple #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
     );
Exemple #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);
 }
Exemple #14
0
 public static extern unsafe bool CertGetIntendedKeyUsage(CertEncodingType dwCertEncodingType, CERT_INFO *pCertInfo, out X509KeyUsageFlags pbKeyUsage, int cbKeyUsage);
Exemple #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);
Exemple #16
0
 private static extern unsafe bool CryptEncodeObject(CertEncodingType dwCertEncodingType, IntPtr lpszStructType, void *pvStructInfo, [Out] byte[] pbEncoded, [In, Out] ref int pcbEncoded);
Exemple #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);
Exemple #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));
 }
Exemple #19
0
 private static extern unsafe bool CryptEncodeObject(CertEncodingType dwCertEncodingType, IntPtr lpszStructType, void* pvStructInfo, [Out] byte[] pbEncoded, [In, Out] ref int pcbEncoded);
Exemple #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);
 }
Exemple #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);
Exemple #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);
Exemple #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);
 }
Exemple #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);
Exemple #25
0
 private static extern SafeCertStoreHandle CertOpenStore(IntPtr lpszStoreProvider, CertEncodingType dwMsgAndCertEncodingType, IntPtr hCryptProv, CertStoreFlags dwFlags, [MarshalAs(UnmanagedType.LPWStr)] String pvPara);
Exemple #26
0
 public static unsafe extern bool CryptImportPublicKeyInfoEx2(CertEncodingType dwCertEncodingType, CERT_PUBLIC_KEY_INFO* pInfo, int dwFlags, void* pvAuxInfo, out SafeBCryptKeyHandle phKey);
Exemple #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);
Exemple #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);
Exemple #29
0
 private static partial SafeCertStoreHandle CertOpenStore(IntPtr lpszStoreProvider, CertEncodingType dwMsgAndCertEncodingType, IntPtr hCryptProv, CertStoreFlags dwFlags, [MarshalAs(UnmanagedType.LPWStr)] string?pvPara);
Exemple #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);
Exemple #31
0
 private static partial bool CryptDecodeObject(CertEncodingType dwCertEncodingType, IntPtr lpszStructType, byte[] pbEncoded, int cbEncoded, CryptDecodeObjectFlags dwFlags, byte[]?pvStructInfo, ref int pcbStructInfo);
Exemple #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);
Exemple #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));
 }
Exemple #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);
Exemple #35
0
 public static unsafe partial bool CryptEncodeObject(CertEncodingType dwCertEncodingType, [MarshalAs(UnmanagedType.LPStr)] string lpszStructType, void *pvStructInfo, byte[]?pbEncoded, ref int pcbEncoded);
Exemple #36
0
 public static extern bool CertSaveStore(SafeCertStoreHandle hCertStore, CertEncodingType dwMsgAndCertEncodingType, CertStoreSaveAs dwSaveAs, CertStoreSaveTo dwSaveTo, ref CRYPTOAPI_BLOB pvSaveToPara, int dwFlags);
Exemple #37
0
 public static extern int CertNameToStr(CertEncodingType dwCertEncodingType, [In] ref CRYPTOAPI_BLOB pName, CertNameStrTypeAndFlags dwStrType, StringBuilder psz, int csz);
Exemple #38
0
 public static SafeCertStoreHandle CertOpenStore(CertStoreProvider lpszStoreProvider, CertEncodingType dwMsgAndCertEncodingType, IntPtr hCryptProv, CertStoreFlags dwFlags, string?pvPara)
 {
     return(CertOpenStore((IntPtr)lpszStoreProvider, dwMsgAndCertEncodingType, hCryptProv, dwFlags, pvPara));
 }
Exemple #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);
Exemple #40
0
 public static partial bool CertStrToName(CertEncodingType dwCertEncodingType, string pszX500, CertNameStrTypeAndFlags dwStrType, IntPtr pvReserved, byte[]?pbEncoded, ref int pcbEncoded, IntPtr ppszError);
Exemple #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);
Exemple #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));
 }
Exemple #43
0
 public static extern bool CertSaveStore(SafeCertStoreHandle hCertStore, CertEncodingType dwMsgAndCertEncodingType, CertStoreSaveAs dwSaveAs, CertStoreSaveTo dwSaveTo, ref CRYPTOAPI_BLOB pvSaveToPara, int dwFlags);
Exemple #44
0
 private static unsafe partial bool CryptEncodeObject(CertEncodingType dwCertEncodingType, IntPtr lpszStructType, void *pvStructInfo, byte[]?pbEncoded, ref int pcbEncoded);
Exemple #45
0
 private static unsafe extern SafeCertContextHandle CertFindCertificateInStore(SafeCertStoreHandle hCertStore, CertEncodingType dwCertEncodingType, CertFindFlags dwFindFlags, CertFindType dwFindType, void* pvFindPara, CERT_CONTEXT* pPrevCertContext);
Exemple #46
0
 public static unsafe partial bool CryptImportPublicKeyInfoEx2(CertEncodingType dwCertEncodingType, CERT_PUBLIC_KEY_INFO *pInfo, CryptImportPublicKeyInfoFlags dwFlags, void *pvAuxInfo, out SafeBCryptKeyHandle phKey);
Exemple #47
0
 public static unsafe extern bool CertGetIntendedKeyUsage(CertEncodingType dwCertEncodingType, CERT_INFO* pCertInfo, out X509KeyUsageFlags pbKeyUsage, int cbKeyUsage);
Exemple #48
0
 internal static unsafe partial bool CertGetIntendedKeyUsage(
     CertEncodingType dwCertEncodingType,
     CERT_INFO *pCertInfo,
     out X509KeyUsageFlags pbKeyUsage,
     int cbKeyUsage);
Exemple #49
0
 public static SafeCertStoreHandle CertOpenStore(CertStoreProvider lpszStoreProvider, CertEncodingType dwMsgAndCertEncodingType, IntPtr hCryptProv, CertStoreFlags dwFlags, String pvPara)
 {
     return CertOpenStore((IntPtr)lpszStoreProvider, dwMsgAndCertEncodingType, hCryptProv, dwFlags, pvPara);
 }