I have used JSS' Signature call to sign but I keep getting an invalid
signature on verification...
I also tried using Sun's Signature class but same deal...

Here are the steps I take (sig is my Signature object):

Signing :
1. get private key and do a sig.initSign
2. open data file #1 and do a sig.update
2. sign data (do a sig.sign)
3. save signed data bytes to a new file #2

Verification:
1. get public key bytes and do a sig.initVerify
2. get data bytes from file #1 and do a sig.update
3. get signature bytes from file #2 and do a sig.verify

--> Signature verification fails!

Am I missing anything?

-- P



Reply via email to