Hi Nils I am not sure what format the binary data is in, but the EVP_PKEY_get1_EC_KEY() method returns NULL. I will try reading the public key from an X509 certificate next.
Thanks for your help Alfred -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nils Larsch Sent: 10 July 2006 07:51 PM To: openssl-users@openssl.org Subject: Re: Generating an ECDSA signature Alfred Thomas wrote: >>> did you try d2i_PUBKEY() ? In this functions doesn't work it would >>> be > interesting to know what format the public key has. > > Not yet, I will have a look at it now. I actually need an EC_KEY and > d2i_PUBKEY() returns an EVP_PKEY, how can I get the EC_KEY needed? EVP_PKEY_get1_EC_KEY() should return a pointer to the EC_KEY object (note: this function increases the reference count in the EC_KEY object). ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]