Re: Sign w/ BSafe; Verify w/ MS Crypto; Error: Invalid Signature

From: Pieter Philippaerts (Pieter_at_nospam.mentalis.org)
Date: 12/18/03


Date: Thu, 18 Dec 2003 19:47:44 +0100


"Daniel McGloin" <dmcgloin@san.rr.com> wrote in message
> I am getting an error verifying a signature created with BSAFE. The
> error returned from CryptVerifySignature is NTE_BAD_SIGNATURE. I have
> tried to verify all inputs (i.e. signature, message file, public key)
> to make sure they are correct.

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'?

Regards,
Pieter Philippaerts
Managed SSL/TLS: http://www.mentalis.org/go.php?sl



Relevant Pages

  • 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: 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. ... > Pieter Philippaerts ... The signature is an array of chars. ...
    (microsoft.public.platformsdk.security)
  • Re: Verifying Signatures
    ... CryptVerifySignature expects little endian integer. ... complete signature to CryptVerifySignature? ... > Do you know what check comes first, the invalid sig check, or the memory ...
    (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)