Re: NTE_BAD_SIGNATURE with CryptVerifySignature



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


.