Re: NTE_BAD_SIGNATURE with CryptVerifySignature
- From: "Doug Barlow" <soft_pedal@xxxxxxxxxxx>
- Date: Fri, 20 Jan 2006 08:48:44 -0800
Su wrote:
> Here is the code (stripped down some lines to make this compact)... Any
> suggestions / thougts on why this would fail with a NTE_BAD_SIGNATURE?
>From a quick glance, it looks like the length of your signed message
includes the trailing null character, but when you verify the message, you
don't incude that trailing null.
The signed and verified messages must be byte for byte identical.
Doug Barlow
The Soft Pedal Shop
CSP Design & Development Consulting
http://www.SoftPedal.net
.
- References:
- Prev by Date: Re: Runas with smartcard
- Next by Date: Re: Winlogon checked version
- Previous by thread: NTE_BAD_SIGNATURE with CryptVerifySignature
- Next by thread: RE: NTE_BAD_SIGNATURE with CryptVerifySignature
- Index(es):