Re: [openssl-users] efficient way to encrypt, then sign?

2015-07-04 Thread Dr. Stephen Henson
On Sat, Jul 04, 2015, Richard Welty wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > what is the lowest overhead method for encrypting using > CMS_encrypt then signing using CMS_sign? it seems like > using BIO_new_mem_buf ought to do but i don't see a method > for getting the length

[openssl-users] efficient way to encrypt, then sign?

2015-07-04 Thread Richard Welty
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 what is the lowest overhead method for encrypting using CMS_encrypt then signing using CMS_sign? it seems like using BIO_new_mem_buf ought to do but i don't see a method for getting the length of the CMS_ContentInfo object to feed to the BIO creation