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