Hi,

I have the following RSA decryption method that always give me the
error "RSA/OAEP-MGF1(SHA-1): Invalid ciphertext" when trying to
perform a RSA decryption on a cipher text.  Any idea why?

CString RSADecryptString(RSAES_OAEP_SHA_Decryptor privKey, const char*
ciphertext)
{
        string result;
        StringSource(ciphertext, true, new PK_DecryptorFilter(privKey, new
StringSink(result)));

        CString csRet(result.c_str());
        return csRet;
}


Regards

cleohm


--~--~---------~--~----~------------~-------~--~----~
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