Re: header file for EC_KEY

2012-05-09 Thread Ken Goldman
On 5/8/2012 5:47 PM, Dr. Stephen Henson wrote: EVP_PKEY_cmp(), see the manual page for details. I just walked the man page starting with http://www.openssl.org/docs/crypto/evp.html# If it's there, it's not obvious. __

Re: header file for EC_KEY

2012-05-09 Thread Dr. Stephen Henson
On Wed, May 09, 2012, Ken Goldman wrote: On 5/8/2012 5:47 PM, Dr. Stephen Henson wrote: EVP_PKEY_cmp(), see the manual page for details. I just walked the man page starting with http://www.openssl.org/docs/crypto/evp.html# That could do with updating with more links. If it's there,

RE: header file for EC_KEY

2012-05-09 Thread Jeremy Farrell
From: Ken Goldman [mailto:kgold...@us.ibm.com] On 5/8/2012 5:47 PM, Dr. Stephen Henson wrote: EVP_PKEY_cmp(), see the manual page for details. I just walked the man page starting with http://www.openssl.org/docs/crypto/evp.html# If it's there, it's not obvious. First hit in

Re: header file for EC_KEY

2012-05-08 Thread Bodo Moeller
I noticed that EC_KEY (ec_key_st) is not defined in ec.h but in ec_lcl.h which is not a public header file, not like RSA(rsa_st) in rsa.h and DSA in dsa.h. Is that correct? Yes, this is intentional - this intentionally prevents applications from accessing ec_key_st fields directly, forcing

Re: header file for EC_KEY

2012-05-08 Thread Ken Goldman
On 5/8/2012 3:13 AM, Bodo Moeller wrote: I noticed that EC_KEY (ec_key_st) is not defined in ec.h but in ec_lcl.h which is not a public header file, not like RSA(rsa_st) in rsa.h and DSA in dsa.h. Is that correct? Yes, this is intentional - this intentionally prevents

Re: header file for EC_KEY

2012-05-08 Thread Bodo Moeller
My application requires me to constantly do things like: - return n, e, p from an openssl RSA key token - construct an openssl RSA public key token from n, e - construct an openssl RSA private key token from n, e, p I do this using the bignum-bin converters and knowledge of the RSA

RE: header file for EC_KEY

2012-05-08 Thread Bin Lu
: Tuesday, May 08, 2012 12:13 AM To: openssl-users@openssl.org Subject: Re: header file for EC_KEY I noticed that EC_KEY (ec_key_st) is not defined in ec.h but in ec_lcl.h which is not a public header file, not like RSA(rsa_st) in rsa.h and DSA in dsa.h. Is that correct? Yes

Re: header file for EC_KEY

2012-05-08 Thread Bodo Moeller
On Tue, May 8, 2012 at 9:00 PM, Bin Lu b...@juniper.net wrote: If that is the case, why EC_KEY is exposed in ec.h, and how do I make use of the functions that requires this object, e.g. EVP_PKEY_get1_EC_KEY()? To use functions like these, you don't need the struct details (you'd only need

Re: header file for EC_KEY

2012-05-08 Thread Ken Goldman
On 5/8/2012 3:00 PM, Bin Lu wrote: How do you solve the problem like the following without directly accessing to this object: I have one EVP_PKEY contains the ECDSA private key and another EVP_PKEY contains the public key, and I need to determine if the public key and the private key are the

Re: header file for EC_KEY

2012-05-08 Thread Dr. Stephen Henson
On Tue, May 08, 2012, Bin Lu wrote: How do you solve the problem like the following without directly accessing to this object: I have one EVP_PKEY contains the ECDSA private key and another EVP_PKEY contains the public key, and I need to determine if the public key and the private key