On 7/29/07, amnon <[EMAIL PROTECTED]> wrote:
>
> Thanks Parch, but this doesn't help
> I tried pub.SignatureLength() , and the signature length is 256, as I
> hard coded in the code.
> Can somebody try the code and see what is the problem ?
> It seems that this group is almost dead !
>
Hi Amnon,

The group is not dead, you just made "trying the code" too much
effort. If you want someone to try the code and see what is the
problem, your best bet is to follow the guidelines here:

http://www.cryptopp.com/#lists

and be sure to post a complete, simple program (including with a
main() function) that people can just compile quickly and try.

At any rate, looking at your code, the problem is pretty clear. Your
usage of the HexEncoder/Decoder classes is very strange. You're
encoding stuff you needn't (in this context anyway) and decoding other
stuff that you haven't encoded. If you remove all your HexEncoders and
HexDecoders, your signatures will verify.

Also, why are you trying to use:

byte result = 0;
f.Get(result);
if (!result)
{
        failed = true;
}

to test for signature verification? Why not just call GetLastResult()
on your filter? I've got no idea what your code there is supposed to
do :-)

Hope this helps.

Geoff

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