> is any code examples how i can write function like RSA_Private_Decrypt > from openssl ? >
We first need to know which hash you used and which padding mode you used. Also see http://www.openssl.org/docs/manmaster/crypto/RSA_public_encrypt.html. The Crypto++ wiki page you are looking for is http://cryptopp.com/wiki/RSA_Cryptography. It will serve as a starting point. If all else fails, then try this page: http://cryptopp.com/wiki/Raw_RSA. But this is _not_ recommended; rather its only available for completeness. > I need to decrypt bytes array using my private key. > Yeah, so this is one of those pet peeves I have with libraries and frameworks, like PHP, exposing low level details and primitive operations. Its expected to be exposed through libraries like OpenSSL and Crypto++. But other libraries should *not* be doing it because its too easy to get in trouble. RSA encryption and decryption using primitives on non-formatted messages is usually bad. There are a number of ways to get in trouble with it. For example, if you don't randomize each transformation of the message, then an attacker can learn when the same message was encrypted. That is, the message "Attack at dawn" always produces the same cipher text, and you have violated semantic security. In an RSA Encryption Scheme (as opposed to just RSA encryption), OAEP padding takes care of that. I have tried CryptoPP::RSAES_OAEP_SHA_Decryptor with no luck :( > OK, there are other RSA encryptors and decryptors. But you need to know the hash and the padding. Jeff -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.