Henrik Nordal Rask wrote:
Didn't get an answer the last time I asked this so I thoght i'd try one time more :-)

When I create an elleiptic curve key using the command lline ´openssl ecparam -genkey -name ´curve´´ I get a relatively small key file. But if I try to generate a key using the function EC_KEY_generate_key and write it to a file using PEM_write_PKCS8PrivateKey, the file is more than twice as large. Is there any way to make it smaller?

Different key formats: the 'openssl ecparam -genkey ...' generates a SEC1 private key, and PEM_write_PKCS8PrivateKey creates (surprise) a PKCS#8 key (Note: the current OpenSSL EC PKCS#8 format is incorrect, I'm currently testing a patch to fix it, so please don't use the current PKCS#8 format).

Also is an openssl public key encryption scheme for elliptic curves planned in a future version?

Don't know (as far as I know it's currently not planned, but that can be changed).

Nils

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to