Integer objects always allocate at least 2 words, because the code for 
adding, subtracting, etc. assume an even number of words for efficiency. 
This is not likely to be the cause of your problem.

What is more likely is that the two applications are using different RSA 
signature formats. One way to debug this is to step through Crypto++ 
verification code and Cryptlib verification code side by side and see what 
they are doing differently.

----- Original Message ----- 
From: "amnon" <[EMAIL PROTECTED]>
To: "Crypto++ Users" <[EMAIL PROTECTED]>
Sent: Tuesday, July 31, 2007 9:26 AM
Subject: RSA signing with public exponent of 4 bytes


>
> Hi
>
> I am using CryptoPP for RSA signing, and another application that uses
> CryptLib for verification.
> The verification fails.
> I have debugged the code deeply, and I don't udnerstand why the sign-
> verify process fails.
> The only hint that I got was:
> I am using a 4 byte number as a public exponent.
> When using the Integer() constructor with the array of 4 bytes, the
> constructor is instansiated with 2 words (8 bytes).
> the 1st 4 bytes are mine, the next 4 bytes are all 0x00.
> Does anyone have an idea why does this happen. Why can't an Integer
> object be with size of 1 word ?
>
> Thank you
>
>
> > 



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