Exemplo n.º 1
0
 private static extern bool CryptEncryptMessage(
     ref CRYPT_ENCRYPT_MESSAGE_PARA pEncryptPara,
     Int32 cRecipientCert,
     IntPtr[] rgpRecipientCert,
     IntPtr pbToBeEncrypted,
     Int32 cbToBeEncrypted,
     IntPtr pbEncryptedBlob,
     ref int pcbEncryptedBlob);
 public static extern bool CryptEncryptMessage(
     ref CRYPT_ENCRYPT_MESSAGE_PARA pDecryptPara,
     int cRecipientCert,
     [In, MarshalAs(UnmanagedType.LPArray)] IntPtr[] rgpRecipientCert,
     byte[] pbToBeEncrypted,
     int cbToBeEncrypted,
     [In, Out] byte[] pbEncryptedBlob,
     ref int pcbEncryptedBlob);
Exemplo n.º 3
0
 private static extern bool CryptEncryptMessage(
     ref CRYPT_ENCRYPT_MESSAGE_PARA pEncryptPara,
     Int32 cRecipientCert,
     IntPtr[] rgpRecipientCert,
     IntPtr pbToBeEncrypted,
     Int32 cbToBeEncrypted,
     IntPtr pbEncryptedBlob,
     ref int pcbEncryptedBlob);