Ejemplo n.º 1
0
 internal static partial SafeCryptMsgHandle CryptMsgOpenToDecode(
     MsgEncodingType dwMsgEncodingType,
     int dwFlags,
     int dwMsgType,
     IntPtr hCryptProv,
     IntPtr pRecipientInfo,
     IntPtr pStreamInfo);
 internal static extern unsafe SafeCryptMsgHandle CryptMsgOpenToEncode(
     MsgEncodingType dwMsgEncodingType,
     int dwFlags,
     CryptMsgType dwMsgType,
     CMSG_ENVELOPED_ENCODE_INFO *pvMsgEncodeInfo,
     [MarshalAs(UnmanagedType.LPStr)] string pszInnerContentObjID,
     IntPtr pStreamInfo);
Ejemplo n.º 3
0
 private static unsafe partial bool CryptDecodeObject(
     MsgEncodingType dwCertEncodingType,
     IntPtr lpszStructType,
     IntPtr pbEncoded,
     int cbEncoded,
     int dwFlags,
     void *pvStructInfo,
     ref int pcbStructInfo);
Ejemplo n.º 4
0
 internal static extern int CertNameToStr(MsgEncodingType dwCertEncodingType, [In] ref DATA_BLOB pName, CertNameStrTypeAndFlags dwStrType, StringBuilder psz, int csz);
 private static extern unsafe bool CryptEncodeObject(
     MsgEncodingType dwCertEncodingType,
     IntPtr lpszStructType,
     void *pvStructInfo,
     [Out] byte[]?pbEncoded,
     [In, Out] ref int pcbEncoded);
 internal static unsafe bool CryptEncodeObject(MsgEncodingType dwCertEncodingType, CryptDecodeObjectStructType lpszStructType, void *pvStructInfo, byte[]?pbEncoded, ref int pcbEncoded)
 {
     return(CryptEncodeObject(dwCertEncodingType, (IntPtr)lpszStructType, pvStructInfo, pbEncoded, ref pcbEncoded));
 }
Ejemplo n.º 7
0
 internal static unsafe partial SafeCertContextHandle CertCreateCertificateContext(
     MsgEncodingType dwCertEncodingType,
     void *pbCertEncoded,
     int cbCertEncoded);
Ejemplo n.º 8
0
 private static extern unsafe bool CryptEncodeObject(MsgEncodingType dwCertEncodingType, IntPtr lpszStructType, void* pvStructInfo, [Out] byte[] pbEncoded, [In, Out] ref int pcbEncoded);
 internal static extern int CertGetPublicKeyLength(MsgEncodingType dwCertEncodingType, [In] ref CERT_PUBLIC_KEY_INFO pPublicKey);
 internal static partial int CertGetPublicKeyLength(MsgEncodingType dwCertEncodingType, ref CERT_PUBLIC_KEY_INFO pPublicKey);
Ejemplo n.º 11
0
 private static unsafe partial bool CryptEncodeObject(
     MsgEncodingType dwCertEncodingType,
     nint lpszStructType,
     void *pvStructInfo,
     byte[]?pbEncoded,
     ref int pcbEncoded);
 internal static unsafe extern SafeCryptMsgHandle CryptMsgOpenToEncode(MsgEncodingType dwMsgEncodingType, int dwFlags, CryptMsgType dwMsgType, CMSG_ENVELOPED_ENCODE_INFO* pvMsgEncodeInfo, [MarshalAs(UnmanagedType.LPStr)] string pszInnerContentObjID, IntPtr pStreamInfo);
Ejemplo n.º 13
0
 internal static extern int CertNameToStr(MsgEncodingType dwCertEncodingType, [In] ref DATA_BLOB pName, CertNameStrTypeAndFlags dwStrType, StringBuilder psz, int csz);
Ejemplo n.º 14
0
 internal static extern SafeCryptMsgHandle CryptMsgOpenToDecode(MsgEncodingType dwMsgEncodingType, int dwFlags, int dwMsgType, IntPtr hCryptProv, IntPtr pRecipientInfo, IntPtr pStreamInfo);
 internal static extern unsafe SafeCertContextHandle CertCreateCertificateContext(MsgEncodingType dwCertEncodingType, void* pbCertEncoded, int cbCertEncoded);
Ejemplo n.º 16
0
 internal static unsafe bool CryptEncodeObject(MsgEncodingType dwCertEncodingType, CryptDecodeObjectStructType lpszStructType, void* pvStructInfo, byte[] pbEncoded, ref int pcbEncoded)
 {
     return CryptEncodeObject(dwCertEncodingType, (IntPtr)lpszStructType, pvStructInfo, pbEncoded, ref pcbEncoded);
 }
Ejemplo n.º 17
0
 internal static extern int CertGetPublicKeyLength(MsgEncodingType dwCertEncodingType, [In] ref CERT_PUBLIC_KEY_INFO pPublicKey);
Ejemplo n.º 18
0
 private static extern unsafe bool CryptDecodeObject(MsgEncodingType dwCertEncodingType, IntPtr lpszStructType, IntPtr pbEncoded, int cbEncoded, int dwFlags, void* pvStructInfo, ref int pcbStructInfo);