Re: EC PrivateKey format

2014-10-30 Thread Dr. Stephen Henson
On Thu, Oct 30, 2014, Carl Tietjen wrote: > Hey folks, > > I am trying to get (export) a raw EC private key in the PKCS#8 format. > > I am using the function i2d_PrivateKey (in i2d_pr.c). The problem is that > this code first checks to see if there is an old method (i.e. > a->ameth->old_priv_

EC PrivateKey format

2014-10-30 Thread Carl Tietjen
Hey folks, I am trying to get (export) a raw EC private key in the PKCS#8 format. I am using the function i2d_PrivateKey (in i2d_pr.c). The problem is that this code first checks to see if there is an old method (i.e. a->ameth->old_priv_encode) and if there is, it uses that method and returns.