On Sun, Jul 02, 2006, lonestar (sent by Nabble.com) wrote: > > Hi! > > I'd like to serialize a EC public key into a DER encoded stream. I've tried > the function i2d_PublicKey with the EVP_PKEY structure. I get the resulting > length but nothing is copied to my destination buffer. > The i2d_PrivateKey function although works fine. I get the resulting length > and data is copied to my destination buffer. > > Are there any known issues with that function? > > Another question is why the ec.h only provides a i2d_ECPrivateKey and no > similar function for the public key. > > Thereby I'm using openssl 0.9.8a. >
Try i2d_PUBKEY() instead. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
