Monday, April 1, 2013

Re: Same text, different Signature with each execution

Hi Jens.

I updated your JUnit with this method:

private boolean verify(byte[] clearText, byte[] signature) throws Exception {
 signer.initVerify(keyPair.getPublic());
 signer.update(clearText);
 return signer.verify(signature);
 }

First argument i pass "Hello World!!!", and second the previous signature (both with getBytes("UTF-8")). But always return false.

Does it work for you?

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment