[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-cryptoapi
Subject:    Re: CryptHashMessage Bug?
From:       Richard Dale <rsdale () MN ! MEDIAONE ! NET>
Date:       2000-06-23 14:25:59
[Download RAW message or body]


I think that what you describe is the documented behavior.  If you look at
the
"common in/out parameter conventions" it says something to the effect of...

"When pbData is NULL then no error is returned  and the function returns the
required size of the memory buffer."

--
r

----- Original Message -----
From: "Keith Wedinger" <Keith_Wedinger@STERCOMM.COM>
To: <CryptoAPI@DISCUSS.MICROSOFT.COM>
Sent: Friday, June 23, 2000 8:14 AM
Subject: CryptHashMessage Bug?


> According to the MSDN Library documentation, CryptHashMessage will result
in
> ERROR_MORE_DATA being returned from GetLastError() if the buffer specified
by
> the pbHashedBlob parameter is not large enough to hold the returned data.
>
> In my code, I am calling CryptHashMessage with the pbHashedBlob param set
to
> NULL and the DWORD pointed to by the pdbHashedBlob param set to 0.  In
this
> scenario, CryptHashMessage is returning TRUE and the GetLastError() code
is set
> to 0.
>
> Is this the correct behavior (making the documentation incorrect) or does
> CryptHashMessage have a bug?
>
> J. Keith Wedinger
> Senior Software Developer
> Sterling Commerce
> keith_wedinger@stercomm.com
>
> ----------------------------------------------------------------
> Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
> contains important info including how to unsubscribe.  Save time, search
> the archives at http://discuss.microsoft.com/archives/index.html

----------------------------------------------------------------
Users Guide http://msdn.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://discuss.microsoft.com/archives/index.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic