[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bouncycastle-crypto-dev
Subject:    [dev-crypto] Problem with Signature Verification
From:       "Doug Schaible" <dougjrs () gmail ! com>
Date:       2007-06-13 17:40:14
Message-ID: d6ceb1f0706131040ld25bf61o1a75f78fadfbdb1f () mail ! gmail ! com
[Download RAW message or body]

Good Afternoon,

I am trying to verify a signature that was created by an ASP.net application
in java.  So far everything that I have attempted has failed.  I am able to
create signatures that can be verified in ASP.net.

Does anyone have any pointers that could help me?

Thanks,
Doug

Here is my signature verification code:


    Signature sig = Signature.getInstance("SHA1withRSA");
    sig.initVerify(PubKey);
    sig.update(CipherString.getBytes());
    verifies = sig.verify(SignatureString.getBytes());

[Attachment #3 (text/html)]

<div>Good Afternoon,</div>
<div>&nbsp;</div>
<div>I am trying to verify a signature that was created by an ASP.net application in \
java.&nbsp; So far everything that I have attempted has failed.&nbsp; I am able to \
create signatures that can be verified in ASP.net.</div> <div>&nbsp;</div>
<div>Does anyone have any pointers that could help me?</div>
<div>&nbsp;</div>
<div>Thanks,</div>
<div>Doug</div>
<div>&nbsp;</div>
<div>Here is my signature verification code:</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;Signature sig = \
Signature.getInstance(&quot;SHA1withRSA&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;sig.initVer \
ify(PubKey);<br>&nbsp;&nbsp;&nbsp;&nbsp;sig.update(CipherString.getBytes());<br>&nbsp;&nbsp;&nbsp;&nbsp;verifies \
= sig.verify(SignatureString.getBytes());</div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic