Just for my own edification, from this thread, it sounds like OpenSSL doesn't support password-protected
PKCS#7 bundles....is this interpreation correct?
Randy On Apr 29, 2009, at 6:16 AM, Dr. Stephen Henson wrote:
On Wed, Apr 29, 2009, Mathieu Malaterre wrote:On Wed, Apr 29, 2009 at 12:14 PM, Dr. Stephen Henson <[email protected] > wrote:On Wed, Apr 29, 2009, Mathieu Malaterre wrote:That involves the use of a password based recipient info structure whichOpenSSL doesn't currently support.Ah ! Thanks for the info. Doing some google search on the openssl mailing list it appears that PKCS5_PBKDF2_HMAC_SHA1 could be the function I am looking for ? Is this correct ? If this is the case I need to write something like: OpenSSL_add_all_algorithms(); EVP_PKEY *pkey = ??; // complex part data = BIO_new_mem_buf(array, len); // output of fread p7=d2i_PKCS7_bio(data,NULL)) p7bio=PKCS7_dataDecode(p7,pkey,NULL,NULL); What I am not clear is how do I create this EVP_PKEY from PKCS5_PBKDF2_HMAC_SHA1 function...Err no it's not a simple fix. You can't use PKCS#7 for a start because thatformat isn't compatible: you need the CMS routines.Then you'd need to implement appropriate handling of that recipient info typein the library. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [email protected]
smime.p7s
Description: S/MIME cryptographic signature
