[openssl.org #797] openssl not multi-thread safe

2003-12-15 Thread Dao Zheng via RT
When there are multiple threads calling SSL_connect for the first time, openssl may cause the program to crash. I believe that the problem is in md_rand.c line 337: if (!initialized) { RAND_poll(); initialized = 1; } The above code is not multi-thread safe, when there are two

Re: [openssl.org #781] [PATCH] NetWare Support for OpenSSL 0.9.7

2003-12-15 Thread Verdon Walker via RT
Richard, Any chance yet to reconsider applying this patch to 0.9.7? Verdon >>> [EMAIL PROTECTED] 12/2/2003 3:38:32 PM >>> Addressing the points in order: ERR_free_state_table() is not meant to do the same as ERR_remove_state(). It is indeed meant to clean up the entire table and is used for

Re: decrypt base65 file with openssl

2003-12-15 Thread Mohamad Badra
Dear, The input must be binary. But did 'rsautl' will accept any file more 128 bytes (when use RSA-1024 bits) since the file length will overtake 1024 bits. I think that it is possible only for file less that 1024 bits. (i.e. y file has 256 bytes in hexadecimal format). Several different

Re: decrypt base65 file with openssl

2003-12-15 Thread Dr. Stephen Henson
On Mon, Dec 15, 2003, Mohamad Badra wrote: > Excuse me but you didn't answer me about the format that the OpenSSL > accepts it to decrypt with RSA? The input must be binary. Several different padding types are supported include raw, ssl2, PKCS#1 v1.5 and OAEP with SHA1. If you use 'rsautl' for

Re: decrypt base65 file with openssl

2003-12-15 Thread Mohamad Badra
Excuse me but you didn't answer me about the format that the OpenSSL accepts it to decrypt with RSA? Thank you -Bdr Dr. Stephen Henson wrote: On Mon, Dec 15, 2003, Mohamad Badra wrote: Hello again, In fact, I tried the base64 command (base64 -e input file) on the hexadecimal fi

Re: decrypt base65 file with openssl

2003-12-15 Thread Mohamad Badra
Excuse me for this mistake, it is in hexadecimal. Let me try with xxd command Thank you -Bdr Dr. Stephen Henson wrote: On Mon, Dec 15, 2003, Mohamad Badra wrote: Hello again, In fact, I tried the base64 command (base64 -e input file) on the hexadecimal file. a)Firstly, the f

Re: decrypt base65 file with openssl

2003-12-15 Thread Dr. Stephen Henson
On Mon, Dec 15, 2003, Mohamad Badra wrote: > Hello again, > > In fact, I tried the base64 command (base64 -e input file) on the > hexadecimal file. > a)Firstly, the file's length increases from 256 to 349 bytes. Is it normal? > b)Secondly, the base64 takes the hexa and give me base64 format. Wha

Re: decrypt base65 file with openssl

2003-12-15 Thread Mohamad Badra
Hello again, In fact, I tried the base64 command (base64 -e input file) on the hexadecimal file. a)Firstly, the file's length increases from 256 to 349 bytes. Is it normal? b)Secondly, the base64 takes the hexa and give me base64 format. What I need is the exact format (I think it is the pkcs1

Re: decrypt base65 file with openssl

2003-12-15 Thread Dr. Stephen Henson
On Mon, Dec 15, 2003, Mohamad Badra wrote: > Dear, > > I have a trace of SSL client/server session and the server's RSA private > key. > During the SSL session, the client encrypts a 48 bytes premastersecret > with the server public key. > > I have the encrypted premastersecret coding in Base6

decrypt base65 file with openssl

2003-12-15 Thread Mohamad Badra
Dear, I have a trace of SSL client/server session and the server's RSA private key. During the SSL session, the client encrypts a 48 bytes premastersecret with the server public key. I have the encrypted premastersecret coding in Base64. Must i translate it to any specific format before decryp