Re: Generated RSA Data Bigger than Key

2010-01-22 Thread Patrick Patterson
Hi Douglas: My first thought on this is that you're seeing padding, which may make the final data larger. On January 22, 2010 08:54:58 am Douglas Gemignani wrote: > Hello, > > I'm using PKCS#7 for generating an enveloped certificated, but after > openssl generating a random TDES key and encrypts

Re: Generated RSA Data Bigger than Key

2010-01-22 Thread Dr. Stephen Henson
On Fri, Jan 22, 2010, Douglas Gemignani wrote: > Hello, > > I'm using PKCS#7 for generating an enveloped certificated, but after > openssl generating a random TDES key and encrypts it with my pub exp, > sometimes the resulting data is bigger than my module / prv exp. > > Something is wrong, this

Generated RSA Data Bigger than Key

2010-01-22 Thread Douglas Gemignani
Hello, I'm using PKCS#7 for generating an enveloped certificated, but after openssl generating a random TDES key and encrypts it with my pub exp, sometimes the resulting data is bigger than my module / prv exp. Something is wrong, this should never happen... There is my snippet p7 = PKCS7_new()