Can any one send me the source code to encrypt the entire file using RSA
generated public key. Guys this very urgent if please send me the cod ASAP,
as i'm running out of time to search through the library.
thanks in advance.
-----Original Message-----
From: Wei Dai [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 4:16 AM
To: [EMAIL PROTECTED]
Subject: Re: Trouble using const Integer& with RSAES_PKCS1v15_Encryptor
in .NET


It's caused by differences in the way compilers handle templates. Try
doing this instead:

RSAES_PKCS1v15_Encryptor encryptor;
encryptor.AccessKey().Initialize(m, e);

On Tue, Aug 12, 2003 at 01:22:21PM -0700, Scott Maxwell wrote:
> I am trying to upgrade from VC6 to .NET (VC7).  If I do this:
>
> void Decrypt(const CryptoPP::Integer& m, const CryptoPP::Integer& e, ...)
> {
>          RSAES_PKCS1v15_Encryptor(m,e);
>          ...
> }
>
> The compiler complains that it can't find a best match.  This works fine
> under VC6 or GCC.  If I change 'm' to be non-const, the problem goes away.
>
> Any idea why this is?
>
> Thanks,
>
> Scott Maxwell
> PocketPurchase, Inc.

Reply via email to