Good morning.

Thank you for this help, I was on the right way, now this part works.

Meike

-----Urspr�ngliche Nachricht-----
Von: Wei Dai [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 4. April 2005 04:09
An: [email protected]
Betreff: Re: Rsa- key generation

> If I understand you correctly, no.  It is an essential feature of 
> public key encryption that neither key can be computed from the other.

That's incorrect. You can usually obtain a public key from a private key, but 
not vice versa. To do this in Crypto++:

// untested
std::string hexEncodedPrivateKey;
//...
StringSource ss(hexEncodedPrivateKey, true, new HexDecoder); RSA::PrivateKey 
priv; priv.BERDecode(ss); RSA::PublicKey pub; pub.AssignFrom(priv); 



Reply via email to