thanks! i only want to read ec privatekey
my ec privatekey is below
-----BEGIN EC PRIVATE KEY-----
MGACAQEEGAu0lmj+Fgurl8m7Tpwi4+wZk9GRSgdyjKALBgkqgRzXYwEBAgGhNAMy
AQS0/wY++sZk+W3QERcmJ+5m1l+PKkaFhJelGBfWaDN4vmSZg7ltf8YtRaUVvyaS
m1I=
-----END EC PRIVATE KEY-----
so i use
EVP_PKEY *prikey;
FILE *keyfp;
if (!(prikey = PEM_read_PrivateKey(keyfp, NULL, NULL, NULL)))
return 0;
return 1;
it always return 0,by the way the my ec curve is not in openssl ec curve
list.
From: "Dr. Stephen Henson" <[EMAIL PROTECTED]>
Reply-To: openssl-users@openssl.org
To: openssl-users@openssl.org
Subject: Re: i am confused in PEM_read_PrivateKey
Date: Tue, 13 Jun 2006 19:31:57 +0200
On Tue, Jun 13, 2006, ?? ???? wrote:
> when i use PEM_read_PrivateKey find it work error ,so i look into
> PEM_read_PrivateKey to find the reason.
Printing out the error code in human readable form might help more (see
FAQ)
assuming you haven't done that already.
Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager [EMAIL PROTECTED]
_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn/
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager [EMAIL PROTECTED]