On Mon, Jul 25, 2011, Kenneth Goldman wrote:

> I can create and use an EC_KEY, but I need utilities to write and read it 
> to a file.
> 
> 1 - I assume I should use PEM format, like I do for RSA.  Correct?
> 
> 2 - Can someone post the call sequence?  There's nothing in the html doc 
> yet.  I see some clues in the openssl source, but I'd prefer not to recode 
> what already exists.
> 

The functions PEM_read_bio_ECPrivateKey() and PEM_write_bio_ECPrivateKey() can
be used. Their usage is identical to similar functions such as the
RSAPrivateKey functions except the RSA structure is replaced by EC_KEY. If it
is a public key the PUBKEY version can be used instead.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to