Re: CAPICOM enveloped data interop question
From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 03/26/04
- Previous message: Michel Gallant: "Re: CAPICOM enveloped data interop question"
- In reply to: Michel Gallant: "Re: CAPICOM enveloped data interop question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 25 Mar 2004 22:25:11 -0600
Thanks Mitch!
Joe K.
"Michel Gallant" <neutron@NOSPAMistar.ca> wrote in message news:ekk8ONtEEHA.3016@TK2MSFTNGP11.phx.gbl...
Hi Joe,
The comment from that article you reference below specifically applies to CAPICOM EncryptedData format.
However, CAPICOM EnvelopedData produces standard CMS/PKCS #7 messages with good interop.
However, there are some issues with enveloping binary files using .NET and CAPICOM interop having to do with marshalling from CAPICOM bstr to .NET managed code. A workaround was posted to the capicom maillist but involves dis/reassembling the Interop.CAPICOM.dll.
Strangely enough, Microsoft's Java (MS-JVM) does not have this problem due to better support for COM variants and marshalling, so the following Enveloping utility I wrote handles any binary file:
http://www.jensign.com/JavaScience/cryptoutils/jacrypt
If your can use scripting, it is easly to use CAPICOM and generate EnvelopedData (then sign it) for any binary data file.
- Mitch Gallant
MVP Security
"Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote in message news:OVLNoNrEEHA.1228@TK2MSFTNGP11.phx.gbl...
Hi all,
I'm building an application that will create files to be exchanged with a vendor. The design specifies that the data in the files must be encrypted via RSA with a vendor-supplied certificate and signed with a trusted certificate provided by me. Files use standard PKCS#7 enveloped data to accomplish this. We'll use 3DES for the symmetric algorithm, so the details are in place.
Given that .NET doesn't have much if any support for enveloped data in System.Security.Cryptography, I thought I would be most productive using CAPICOM via interop to generate the enveloped data. However, I noticed this from MSDN documentation
which indicates that CAPICOM creates non-standard enrypteddata files that can only be read with CAPICOM. I need standard PKCS#7. My question is, does the restriction above apply to enveloped data that is encrypted AND signed, or just encrypted data? I'm still a novice with crypto and the distinctions to me are not clear.
Any help would be greatly appreciated.
Thanks!
Joe K.
- Previous message: Michel Gallant: "Re: CAPICOM enveloped data interop question"
- In reply to: Michel Gallant: "Re: CAPICOM enveloped data interop question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|