Hi, 

I am having trouble creating a public & private key pair that works in both
my c++ and php programs.

I can create, sign, and verify, a keypair that i have created in php, using 
http://pastebin.com/QgND0Bvt this  code and everything is fine.

But when i try to take the private key that was generated in php and use
that to sign something in my c++ application, the 
http://pastebin.com/4hhEUJmP C++ Signer Func  fails on line 8.

However if i create the public and private keys in c++ instead of php using 
http://pastebin.com/gTJ5bcCU C++ Keypair Maker  then the 
http://pastebin.com/4hhEUJmP C++ Signer Func  executes without a glitch and
succesfully signs.

I also notice that the keypairs created in php using phpseclib's
extract($rsa->createKey(512)) function are always larger than those created
using the  http://pastebin.com/gTJ5bcCU C++ Keypair Maker .

I hope someone could take a look over this and suggest why the keypair i
create in php is incompatable with my c++ program.

Thankyou for your time

Chris



-- 
View this message in context: 
http://old.nabble.com/Creating-a-key-i-can-use-in-both-c%2B%2B-and-php.-tp33506946p33506946.html
Sent from the Crypto++ Users mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Reply via email to