Memory handling and BIO_*

2010-03-20 Thread Mathieu Malaterre
Hi there, I am struggling with the BIO_* API to understand how I can control the memory. I found a nice function for read-only memory: BIO *data = BIO_new_mem_buf((void*)array, len); but I do not understand how to control output memory (I need to write to a C++ std::stringstream). So what

Re: What is RAND_screen for ?

2010-03-17 Thread Mathieu Malaterre
On Tue, Mar 16, 2010 at 6:25 PM, Dr. Stephen Henson wrote: > On Tue, Mar 16, 2010, Mathieu Malaterre wrote: > >> Hi there, >> >>  I am looking at an old piece of code: >> >> http://cpansearch.perl.org/src/SAMPO/smime-0.7/smimeutil.c >> >> .

What is RAND_screen for ?

2010-03-16 Thread Mathieu Malaterre
Hi there, I am looking at an old piece of code: http://cpansearch.perl.org/src/SAMPO/smime-0.7/smimeutil.c ... #ifdef WINDOWS LOG_PRINT("RAND_screen..."); RAND_screen(); /* Loading video display memory into random state */ #endif ... And I was wondering why RAND_screen was being called o

Re: CMS with PBE (Was Re: Decrypting a password encrypted pkcs7-envelopedData): success !

2009-11-27 Thread Mathieu Malaterre
On Thu, Nov 26, 2009 at 7:59 PM, Dr. Stephen Henson wrote: > On Mon, Nov 23, 2009, Mathieu Malaterre wrote: > >> Steve, >> >> >> Do you have a sample PBE blob you want to decrypt? >> > >> > Here is one: >> > >> > $ wget http://idis

Re: CMS with PBE (Was Re: Decrypting a password encrypted pkcs7-envelopedData)

2009-11-23 Thread Mathieu Malaterre
Steve, >> Do you have a sample PBE blob you want to decrypt? > > Here is one: > > $ wget http://idisk.mac.com/dclunie-Public/securedicomfileset.tar.bz2 > $ openssl asn1parse -in DICOMDIR -inform DER > > It was generated using Bouncy Castle I forgot to mention, if you need help from me, do not hes

Re: CMS with PBE (Was Re: Decrypting a password encrypted pkcs7-envelopedData)

2009-11-10 Thread Mathieu Malaterre
On Tue, Nov 10, 2009 at 5:15 PM, Dr. Stephen Henson wrote: > On Tue, Nov 10, 2009, Mathieu Malaterre wrote: > >> >>   Thanks for taking the time to answer, this will save me some time ! >>   How hard would you say is this task (I have neither a previous >> knowledge

Re: CMS with PBE (Was Re: Decrypting a password encrypted pkcs7-envelopedData)

2009-11-10 Thread Mathieu Malaterre
On Tue, Nov 10, 2009 at 4:56 PM, Dr. Stephen Henson wrote: > On Tue, Nov 10, 2009, Mathieu Malaterre wrote: > >> On Wed, Nov 4, 2009 at 12:17 PM, Mathieu Malaterre >> wrote: >> >> Answering to myself, it looks like it: >> >> >>   *) Initial s

Re: CMS with PBE (Was Re: Decrypting a password encrypted pkcs7-envelopedData)

2009-11-10 Thread Mathieu Malaterre
On Wed, Nov 4, 2009 at 12:17 PM, Mathieu Malaterre wrote: > Hi, > > On Wed, Apr 29, 2009 at 9:41 PM, Dr. Stephen Henson wrote: >> On Wed, Apr 29, 2009, Randy Turner wrote: >> >>> >>> Just for my own edification, from this thread, it sounds like OpenSSL

CMS with PBE (Was Re: Decrypting a password encrypted pkcs7-envelopedData)

2009-11-04 Thread Mathieu Malaterre
Hi, On Wed, Apr 29, 2009 at 9:41 PM, Dr. Stephen Henson wrote: > On Wed, Apr 29, 2009, Randy Turner wrote: > >> >> Just for my own edification, from this thread, it sounds like OpenSSL >> doesn't support password-protected >> PKCS#7 bundlesis this interpreation correct? >> > > No. It supports

Re: Decrypting a password encrypted pkcs7-envelopedData

2009-04-29 Thread Mathieu Malaterre
On Wed, Apr 29, 2009 at 12:14 PM, Dr. Stephen Henson wrote: > On Wed, Apr 29, 2009, Mathieu Malaterre wrote: > >> Hi there, >> >> I am trying to decrypt a file like this: >> >> $ openssl asn1parse -in sec -inform DER >> 0:d=0 hl=2 l=inf con

Decrypting a password encrypted pkcs7-envelopedData

2009-04-29 Thread Mathieu Malaterre
Hi there, I am trying to decrypt a file like this: $ openssl asn1parse -in sec -inform DER 0:d=0 hl=2 l=inf cons: SEQUENCE 2:d=1 hl=2 l= 9 prim: OBJECT:pkcs7-envelopedData 13:d=1 hl=2 l=inf cons: cont [ 0 ] 15:d=2 hl=2 l=inf cons: SEQUENCE 17:d=3 hl=2 l=

Re: Enveloped-data content type of the cryptographic message syntax defined in RFC 2630

2009-04-26 Thread Mathieu Malaterre
On Sun, Apr 26, 2009 at 10:50 AM, Mathieu Malaterre wrote: > Hi there, > >  After posting to sci.crypt, I was suggested to use OpenSSL. > Basically I need to implement a section of the DICOM standard (read: > medical image format), where for anonymization reason I need to &g

Enveloped-data content type of the cryptographic message syntax defined in RFC 2630

2009-04-26 Thread Mathieu Malaterre
Hi there, After posting to sci.crypt, I was suggested to use OpenSSL. Basically I need to implement a section of the DICOM standard (read: medical image format), where for anonymization reason I need to encrypt patient related information. As stated in the standard I need to enrypt some conten