Re: CryptVerifySignature fails with error NTE_BAD_SIGNATURE
- From: vishal.cs024@xxxxxxxxx
- Date: Mon, 18 Aug 2008 12:15:36 -0700 (PDT)
On Aug 14, 9:08 am, lelteto <lelt...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Check the ENDIANNESS. Java should create the signature (and everything) in
big endian format, while MS CAPI expect everything in little endian format.
You may need to reverse the signature and public key bytes you got from the
server.
Laszlo Elteto
SafeNet, Inc.
"vishal.cs...@xxxxxxxxx" wrote:
Hi,
I am working on windows mobile pocketpc 5.0.
CryptVerifySignature fails with error NTE_BAD_SIGNATURE.
When i create hash, export public key , create signature and the
verify the signature it works fine.
but when server creates the signature , Client needs to verify in
mobile using CryptVerifySignature then function fails.
Both client and server using md5 hashing algorithm.
Server is using some java script to do hasing, exporting public key
and signing.
windows mobile is having the client app, which is using crypto api's.
Please someone tell me, how to solve this issue.
Thanks
Vishal- Hide quoted text -
- Show quoted text -
Hi,
I tried reversing the signature, even public key
it didn't work out.
ex: if the signature is like 107,106,36,
the reversse of this is ,63,601,701
Can you please give if any sample code which is in java to create
signing and exporting public key
and WM code to test. I have client code where it tests the signing.
Thanks
Vishal
.
- Follow-Ups:
- References:
- CryptVerifySignature fails with error NTE_BAD_SIGNATURE
- From: vishal . cs024
- RE: CryptVerifySignature fails with error NTE_BAD_SIGNATURE
- From: lelteto
- CryptVerifySignature fails with error NTE_BAD_SIGNATURE
- Prev by Date: Re: "security key"
- Next by Date: Re: CryptVerifySignature fails with error NTE_BAD_SIGNATURE
- Previous by thread: RE: CryptVerifySignature fails with error NTE_BAD_SIGNATURE
- Next by thread: Re: CryptVerifySignature fails with error NTE_BAD_SIGNATURE
- Index(es):
Relevant Pages
|