Re: ECDSA/Using private and Public keys
On Tue, Feb 24, 2009, Ryan Tolonen wrote: > > > // Get the private key in DER > > pptr = buf; > > len = i2d_ECPrivateKey(eckey, &pptr); > > > > // Convert the private key back from DER/allocate new eckey > > newkey = d2i_ECPrivateKey(NULL, &pptr, len); > > > Why does
RE: ECDSA/Using private and Public keys
> Why does the call to d2i_ECPrivateKey(NULL, &pptr, len); always fail? Because you didn't pass it a key. Change that 'NULL' to 'eckey'. DS __ OpenSSL Project http://www.openssl.org User Support