Hi Matt,

I use:
$ openssl version
OpenSSL 1.0.1e-fips 11 Feb 2013 

I was able to successfully parse your attached private key.
I've attached my smallest prime, binary and kolbitz curve key pairs. As I said 
the prime curve parses correct with the openssl command line tool but not the 
binary curve keys.

Regards,
Leon Brits 

-----Original Message-----
From: owner-openssl-...@openssl.org [mailto:owner-openssl-...@openssl.org] On 
Behalf Of Matt Caswell
Sent: 19 March 2013 11:48 PM
To: openssl-dev@openssl.org
Subject: Re: EVP and Elliptic curve

On 19 March 2013 10:22, Leon Brits <le...@parsec.co.za> wrote:
> I've created keys for NIST Prime curves (224-571bit), Binary and 
> Kolbits curves (233-571 bit). I then convert the keys to PEM using the 
> same method which I used successfully for RSA and DSA which only calls
> PEM_write_bio_PrivateKey() and PEM_write_bio_PUBKEY(). The type is 
> never specified in my functions. What is interesting now is that if I 
> test the EC PEM files, using the openssl command line tool, all the 
> keys generated for the NIST Prime curves is successfully parsed while 
> the others fails with the following error:

I have just tested this with no problems using NID_sect233k1. What version of 
openssl are you using? Please see attached PEM file. Are you able to read that 
with openssl ec? Please send me a sample PEM that you are having difficulty 
with and I will see if I can read it.

Matt

Attachment: ec-b233.pem
Description: ec-b233.pem

Attachment: ec-k233.pem
Description: ec-k233.pem

Attachment: ec-p224.pem
Description: ec-p224.pem

Reply via email to