Env : VC++ 6.0
Subj : RSA Encryption
Iam a newbie with Crypto++.

I have the Modulus and Public Exponent of  a Public Key(from the Display
Driver's digital certificate ).
These are stored in separate std::string strModulus and strExponent.
Iam trying to Encrypt some value using RSAES_PKCS1v15_Encryptor object.
For initializing this encryptor object i did,

RSAES_PKCS1v15_Encryptor obj(m,e).
this acccepts CryptoPP::Integer.

So first, i tried to convert the strModulus and strExponent to
CryptoPP::Integer, by doing like
CryptoPP::Integer iMod(strModulus.c_str()) and
CryptoPP::Integer iExp(strExponent.c_str()).

But this doesnt seem to work. can someone point me the correct way for
achieving what i need.
thanks very much.


Reply via email to