Crypt_RSA 1.2b possible bug?
| From: | Rob Brenart | Date: | Sat, 04 Mar 2006 00:25:20 +0000 |
| Subject: | Crypt_RSA 1.2b possible bug? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-23217@lists.php.net to get a copy of this message | ||
I'm running into an error with keys that have a length greater than 1008.
They work fine if I just generate & use them, but if I use the toPEMString & fromPEMString (for the purpose of saving to a file, though this happens without the save to a file step) I get an error on from
$key_pair = Crypt_RSA_KeyPair::fromPEMString($str);
namely:
wrong ASN tag value: 0x3a97. Expected 0x02 (INTEGER)
Obviously the tag value changes sometimes depending on key size & just the run.
Anyone run into this & know of a workaround?
I realize I'm using a Beta package, but the stable doesn't have the PEM strings at all.