Re: Verifying Signatures

From: Valery Pryamikov (valery_at_harper.no)
Date: 11/04/05


Date: Fri, 4 Nov 2005 20:49:24 +1100

CryptVerifySignature expects little endian integer. are you sure you sending
complete signature to CryptVerifySignature?

-Valery.
http://www.harper.no/valery

"bender" <bender@discussions.microsoft.com> wrote in message
news:D601FB49-B735-42D1-B5FC-AC1A7E1D9034@microsoft.com...
>I tried the temp buffer and get the same error.
>
> Do you know what check comes first, the invalid sig check, or the memory
> check?
>
> If I pass in my PKCS#1 signature in big endian I get the not enough
> storage
> error.
>
> If I pass in my PKCS#1 signature in little endian I get the invalid
> signature error.
>
> If i fill my signature with all 0's I get invalid signature, which makes
> me
> believe I am passing the proper signature in the big endian form, but for
> some reason the method jumps out on me saying there is no storage.
>
> Does this sound familiar to anyone??
>
> Thanks!



Relevant Pages

  • Re: Most negative double value
    ... Christian Bau wrote: ... this is right if I am writing robust code to run everywhere... ... >>tries to find machine endianess and is part of my signature... ... >>endian or little endian... ...
    (comp.lang.c)
  • Re: Sign w/ BSafe; Verify w/ MS Crypto; Error: Invalid Signature
    ... >> I am getting an error verifying a signature created with BSAFE. ... > other products use big endian byte order. ... > Have you tried reversing the contents of 'signatureKeyData'? ...
    (microsoft.public.platformsdk.security)
  • Re: Unicode in Visual .NET 2003 and C#
    ... Unicode file will normall have a signature for little endian or big ... I recommend to always use the signature. ...
    (microsoft.public.dotnet.csharp.general)
  • Re: Sign w/ BSafe; Verify w/ MS Crypto; Error: Invalid Signature
    ... >> I am getting an error verifying a signature created with BSAFE. ... > Keep in mind that the CryptoAPI uses little endian byte order and that most ... > other products use big endian byte order. ... > Have you tried reversing the contents of 'signatureKeyData'? ...
    (microsoft.public.platformsdk.security)
  • Re: CryptVerifySignature fails with error NTE_BAD_SIGNATURE
    ... parameter of CryptVerifySignature to NULL in order to avoid this error code. ... the signature is computed by the server. ... verify the signature it works fine. ...
    (microsoft.public.platformsdk.security)