Re: EC_KEY and PEM_read_RSAPrivateKey

2012-09-04 Thread redpath
this message in context: http://old.nabble.com/EC_KEY-and-PEM_read_RSAPrivateKey-tp34377536p34387266.html Sent from the OpenSSL - Dev mailing list archive at Nabble.com. __ OpenSSL Project http

Re: EC_KEY and PEM_read_RSAPrivateKey

2012-09-04 Thread Douglas E. Engert
On 9/4/2012 8:26 AM, redpath wrote: Testing the i2d_ECPrivateKey to buffer and then back d2i_ECPrivateKey and it fails. I checked the forum and one guy was passing NULL at least I missed that mistake but thats not my issue. Since I want to save the random generated key to use for private

Re: EC_KEY and PEM_read_RSAPrivateKey

2012-09-04 Thread Dr. Stephen Henson
On Tue, Sep 04, 2012, redpath wrote: Since I want to save the random generated key to use for private and also I will do this for public. The public works though back and forth. So where em I going wrong? len= i2d_ECPrivateKey(eckey,NULL); printf(PRIVATE KEY LENGTH is %d

RE: EC_KEY and PEM_read_RSAPrivateKey

2012-09-04 Thread Dave Thompson
From: owner-openssl-...@openssl.org On Behalf Of redpath Sent: Tuesday, 04 September, 2012 09:27 Testing the i2d_ECPrivateKey to buffer and then back d2i_ECPrivateKey and it fails. I checked the forum and one guy was passing NULL at least I missed that mistake but thats not my issue.

Re: EC_KEY and PEM_read_RSAPrivateKey

2012-09-03 Thread redpath
? -- View this message in context: http://old.nabble.com/EC_KEY-and-PEM_read_RSAPrivateKey-tp34377536p34382798.html Sent from the OpenSSL - Dev mailing list archive at Nabble.com. __ OpenSSL Project

RE: EC_KEY and PEM_read_RSAPrivateKey

2012-09-03 Thread Dave Thompson
From: owner-openssl-...@openssl.org On Behalf Of redpath Sent: Monday, 03 September, 2012 07:45 Well thats what I thought it seems to have its own keys but I saw functions such as setting the points and BIGNUM and thought maybe the PEM could be used which uses 2048 RSA. PEM is a format

RE: EC_KEY and PEM_read_RSAPrivateKey

2012-09-02 Thread Dave Thompson
From: owner-openssl-...@openssl.org On Behalf Of redpath Sent: Saturday, 01 September, 2012 12:53 Currently I am reading a PEM file which contains a test RSA key snip and create a SHA1 message digest unsigned char *result=SHA1((unsigned char *)sample, strlen(sample), md); Aside: that

EC_KEY and PEM_read_RSAPrivateKey

2012-09-01 Thread redpath
key of EC_KEY no real document of how this is used. So simply I have a PEM which gives me a RSA* and want to use the public and privates keys for the ECDSA. How? -- View this message in context: http://old.nabble.com/EC_KEY-and-PEM_read_RSAPrivateKey-tp34377536p34377536.html Sent from