Encrypt with Private Key
Taking from Wei Dai on the Crypto++ User's Group:
You can not encrypt data with a private key. It's just not a valid cryptographic operation. Perhaps what you want is to sign data with a private key, and then verify the signature with the public key. Use the signature classes to do that.