Re: [openssl-users] CMS with Symmetric key

2016-04-12 Thread Dr. Stephen Henson
On Mon, Apr 11, 2016, Abe Racioppo wrote: > Thank you for the responses. > > I have implemented encryption that adds a secret key, and secret key id > using: > CMS_add0_recipient_key, > CMS_EncryptData_encrypt, > SMIME_write_CMS > The output file looks correct, but I need to decrypt it back to be

Re: [openssl-users] CMS with Symmetric key

2016-04-11 Thread Abe Racioppo
Thank you for the responses. I have implemented encryption that adds a secret key, and secret key id using: CMS_add0_recipient_key, CMS_EncryptData_encrypt, SMIME_write_CMS The output file looks correct, but I need to decrypt it back to be sure. I would like to be able to get the secret key id fr

Re: [openssl-users] CMS with Symmetric key

2016-04-05 Thread Dr. Stephen Henson
On Mon, Apr 04, 2016, Abe Racioppo wrote: > Hey guys, > > I'm trying to use the CMS operations in libcrypto but with a symmetric key > encryption key instead of x509. > > I'm thinking I want to use a combination of > > CMS_RecipientInfo_set0_pkey, > SMIME_write_CMS, > and > CMS_EncryptedData_en

Re: [openssl-users] CMS with Symmetric key

2016-04-04 Thread Viktor Dukhovni
> On Apr 4, 2016, at 11:34 PM, Salz, Rich wrote: > >> I'm trying to use the CMS operations in libcrypto but with a symmetric key >> encryption key instead of x509. > > We don't support this. It looks like we do. See crypto/cms/cms_pwri.c and the undocumented "-pwri_password" option of the cm

Re: [openssl-users] CMS with Symmetric key

2016-04-04 Thread Salz, Rich
> I'm trying to use the CMS operations in libcrypto but with a symmetric key > encryption key instead of x509. We don't support this. -- Senior Architect, Akamai Technologies IM: richs...@jabber.at Twitter: RichSalz -- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailm

Re: [openssl-users] CMS with Symmetric key

2016-04-04 Thread Wim Lewis
On Apr 4, 2016, at 3:42 PM, Jakob Bohm wrote: > Unless you can point out a clause in the "CMS" format RFCs > that allow use without X.509 certificates, there is no reason > why the "CMS" part of the OpenSSL library should be able to > any such thing. The CMS RFC (RFC 5652) specifies password bas

Re: [openssl-users] CMS with Symmetric key

2016-04-04 Thread Jakob Bohm
On 05/04/2016 00:18, Abe Racioppo wrote: Hey guys, I'm trying to use the CMS operations in libcrypto but with a symmetric key encryption key instead of x509. I'm thinking I want to use a combination of CMS_RecipientInfo_set0_pkey, SMIME_write_CMS, and CMS_EncryptedData_encrypt. Has anyone d

[openssl-users] CMS with Symmetric key

2016-04-04 Thread Abe Racioppo
Hey guys, I'm trying to use the CMS operations in libcrypto but with a symmetric key encryption key instead of x509. I'm thinking I want to use a combination of CMS_RecipientInfo_set0_pkey, SMIME_write_CMS, and CMS_EncryptedData_encrypt. Has anyone done this before and can give me some directio