Re: How to decrypt PKCS7 structures

2010-04-15 Thread Phillip Hellewell
Yeah, I've read that signed and enveloped is not widely used, but it still surprises me that PKCS7_Decrypt() wouldn't support it since the PKCS7_SIGN_ENVELOPE structure has everything that a PKCS7_ENVELOPE has. What about NID_pkcs7_encrypted? Is that also widely unused and unsupported? My versio

Re: How to decrypt PKCS7 structures

2010-04-15 Thread Dr. Stephen Henson
On Thu, Apr 15, 2010, Phillip Hellewell wrote: > Apparently PKCS7_decrypt() only works on enveloped data. How can I decrypt > a PKCS7 of type signedAndEnveloped or encrypted? > Signed and enveloped isn't supported and hardly anyone implements it any more. BTW you are best using the CMS functio

How to decrypt PKCS7 structures

2010-04-15 Thread Phillip Hellewell
Apparently PKCS7_decrypt() only works on enveloped data. How can I decrypt a PKCS7 of type signedAndEnveloped or encrypted? Thanks, Phillip