Geoff Beier wrote:
 const byte KEY[] = {
        48, -126, 1, -72, 48, -126, 1, 44, 6, 7, 42, -122, 72, -50,
    

This jumps out at me immediately; I suspect you've not exported your
key properly.

A byte is an unsigned type. -126, -72, etc. don't make sense.
  
Signed char -126 is 130 when converted to unsigned char (256 - x). So assuming original byte was 0x82 that's perfectly fine.

Ronald, I never used DSA, so I can't tell if you use it correctly, but one thing you can try is create a signature using Crypto++, encode it into b64 same way you get it from java, and then verify it using your code. That way you can eliminate at least one of possible errors (it is obvious thing, but just in case you didn't think about it yet :)).

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