Wei Dai wrote:
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++:
Sorry, I'm pretty embarrassed. I had naively (and incorrectly) assumed
that same RSA scheme was used for both encryption and digital
signatures, which would required that neither key was computable from
the other. You are, of course, correct, and the RSA public and private
keys can each be used for encryption or decryption depending on
requirements. I don't like being the source of misinformation, so
please accept my apology.
--
Jim Starkey
Netfrastructure, Inc.
978 526-1376