I was using the test.cpp (under the cyptest project -- packed in Crypto++
distribution)
That was my fault -- lacking of understanding about the RSA concept itself

The key should be long enough to "chiper" the string.

Thanks,

Dio

On Fri, Feb 20, 2009 at 9:39 PM, Jeffrey Walton <[email protected]> wrote:

> Hi Dio,
>
> Sample code, please... Just a main() deomonstrating the issue. Rather
> than read the key from a file, hard code a key.
>
> Jeff
>
> On 2/18/09, Dio <[email protected]> wrote:
> >
> > I was trying to execute the test.cpp -- distributed with cryptest. But
> > it gave me this message: RSA/OAEP-MGF1(SHA-1): message too long for
> > this public key
> >
> > I only try to encrypt "Test" string
> >
> > Thanks
> >
> > Dio
>

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