Re: Converting ECC public key point-compressed and uncompressed

2011-07-17 Thread Erwin Himawan
I did dig arround more on the ecparam and ec options. Having a limited knowledge on cryptograpy and specifically ecc key algorithm, and experimenting with the CLI, I would like to clarify my understanding on coverting the form of ecc key from compressed to uncompressed and vice versa. My

Re: Converting ECC public key point-compressed and uncompressed

2011-07-17 Thread Martin Boßlet
My understanding is that to convert the form of ecc key from compressed to uncompressed and from uncompressed to compressed require the knowledge of the ECC private key. Is my understanding correct? You might want to have a look at sections 2.3.3 and 2.3.4 in

Re: Converting ECC public key point-compressed and uncompressed

2011-07-17 Thread Erwin Himawan
Marti, thanks for your response. Erwin -- From: Martin Boßlet martin.boss...@googlemail.com Sent: Sunday, July 17, 2011 7:21 AM To: openssl-users@openssl.org Subject: Re: Converting ECC public key point-compressed and uncompressed My

Re: Trying to Link Statically to Libcrypto

2011-07-17 Thread brandonshw
Okay, I am in to my office for few minutes to get the details. Here is how I am compiling and linking, and the error message I am getting. I have placed elipses (...) where the file and object names were. What do I need to do to get static linking to libcrypto.a to work? g++ ... -O3

Re: Trying to Link Statically to Libcrypto

2011-07-17 Thread Michael S. Zick
On Sun July 17 2011, brandon...@aol.com wrote: Okay, I am in to my office for few minutes to get the details. Here is how I am compiling and linking, and the error message I am getting. I have placed elipses (...) where the file and object names were. What do I need to do to get

Re: Trying to Link Statically to Libcrypto

2011-07-17 Thread brandonshw
I'll try changing the order of the libraries as you suggest. As for telling the linker that I wanted a static link, I am doing the project in Eclipse and put it in the flags area. It comes out in the compile: g++ ... -O3 -Wall -static -c -fmessage-length=0 I do want the executable to be as

Re: Trying to Link Statically to Libcrypto

2011-07-17 Thread Michael S. Zick
On Sun July 17 2011, brandon...@aol.com wrote: I'll try changing the order of the libraries as you suggest. As for telling the linker that I wanted a static link, I am doing the project in Eclipse and put it in the flags area. It comes out in the compile: g++ ... -O3 -Wall -static -c

Query regarding OpenSSL 0.9.8

2011-07-17 Thread Kumar, Nilesh
Hi, I have few queries regarding OpenSSl 0.9.8 : 1. Does it have 64-bit support? If not, which version(s) support 64-bit arch? 2. RHEL version(s) supported 3. GCC version(s) supported Thanks and regards, Nilesh

ECDSA public key token to/from binary

2011-07-17 Thread Kenneth Goldman
I have to extract a binary (unsigned char *) representation of a public key from an ECDSA openssl key structure. Later, I want to use that binary to reconstruct an openssl public key structure that I can use to verify a signature. The curve is fixed - P521. I don't need any certificates,

Re: Trying to Link Statically to Libcrypto

2011-07-17 Thread Andreas Mueller
Brandon, Am 16.07.2011 um 10:59 schrieb brandon...@aol.com: Actually, I believe it said that openldap.so was complaining that they were It would certainly help if you actually knew what it was saying, not just believed it! And wasn't it rather libldap.so, not openldap.so. Of course,

Re: Trying to Link Statically to Libcrypto

2011-07-17 Thread brandonshw
Although I've been programming on various platforms for quite awhile, I don't know much about the principles involved here - i.e. Linux or static vs dynamix linking. You are right, it is linking to libldap. What I am trying to do is remove all dependencies on libraries on the diverse target

Re: Trying to Link Statically to Libcrypto

2011-07-17 Thread Michael S. Zick
On Sun July 17 2011, brandon...@aol.com wrote: Although I've been programming on various platforms for quite awhile, I don't know much about the principles involved here - i.e. Linux or static vs dynamix linking. You are right, it is linking to libldap. What I am trying to do is remove

Re: Trying to Link Statically to Libcrypto

2011-07-17 Thread brandonshw
Some incredibly helpful advice, which I appreciate very much. I'll apply it all tomorrow morning. It makes a lot of sense to find out that I've been putting the -static flag in the wrong place, because I had to develop scripts to temporarily hide shared libraries from the linker, whenever I

Re: Query Regarding usage of SSL_Connect()

2011-07-17 Thread David Schwartz
On 7/14/2011 6:17 AM, Amit Kumar wrote: Hi team, I am using SSL_Connect() in one of my projects and this SSL_connect is returning a value of -1. With SSL_get_error() i can see it is *SSL_ERROR_WANT_READ ?* * * * Now i am not understanding why this can come and if this is there then

Re: Adding Multiple Root certificates in Openssl

2011-07-17 Thread Mayur Premi
Hi Ciprian, Thanks for the immediate reply . I have some questions on both the approaches suggested. You can create a file where you may concatenate all your trusted certificates in PEM format and use that file for verification. [Mayur]--- Is there any openSSL api which helps parsing