OpenSSL - Problem with i2d/d2i_ECPrivateKey
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


sci.crypt archive

OpenSSL - Problem with i2d/d2i_ECPrivateKey

From: Peter Pearson <ppearson@nowhere.invalid>
Date: Wed Nov 30 2005 - 01:28:35 CET

About 1% of the private keys I generate with OpenSSL 0.9.8
(EC_KEY_generate_key, NID_secp521r1) do not survive an
encoding/decoding cycle through i2d_ECPrivateKey and
d2i_ECPrivateKey, with the latter reporting these errors:

   3196:error:10067066:elliptic curve routines:
     ec_GFp_simple_oct2point:invalid encoding:ecp_smpl.c:938:
   3196:error:10092010:elliptic curve routines:
     d2i_ECPrivateKey:EC lib:ec_asn1.c:1141:

Has anybody else seen this problem? Or know anybody
who cares?

-- 
Peter Pearson
To get my email address, substitute:
nowhere -> spamcop, invalid -> net
Received on Sat Dec 3 04:20:25 2005