[prev in list] [next in list] [prev in thread] [next in thread]
List: ms-cryptoapi
Subject: Re: Retrieving data of unknown length
From: Takenaka Kenji <ngb73012 () BIGLOBE ! NE ! JP>
Date: 2002-11-25 12:35:07
[Download RAW message or body]
Hi Martin,
As it is mentioned in MSDN, I set up a pointer to point at the
data length in pdwDataLen (LPDWORD). When I test follow
case, an error happens.
(1) When I get a data length by the CryptGetKeyParam call of PropCert.
(2) When I try No.4 of S/MIME(CryptGetHashParam call) of
"The Smart Card Cryptographic Service Provider Cookbook".
Do you know why these error happen?
Thanks!
Takenaka Kenji
On 2002.11.20, at 21:24, Leung Ming Tak wrote:
> Hi Takenaka,
>
> Takenaka Kenji wrote:
>
>> Hi!
>>
>> I want to retrieve data of unknown length.
>> I can get a data length by the CryptSignHash call.
>> But, ERROR_INVALID_PARAMETER is being returned when it is set up in
>> pbData=NULL and pdwDataLen=0 by the GetKeyParam call.
>> Why?
>
> pdwDataLen should not be 0. It should be a pointer to dword for
> receiving the return len.
>
> Rgds.
> Martin
>
>>
>> Thanks!
>>
>> Takenaka Kenji
>>
>> ----------------------------------------------------------------
>> Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
>> contains important info. Save time, search the archives at
>> http://discuss.microsoft.com/archives/index.html .
>> To unsubscribe, mailto:CryptoAPI-signoff-request@DISCUSS.MICROSOFT.COM
>
> ----------------------------------------------------------------
> Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
> contains important info. Save time, search the archives at
> http://discuss.microsoft.com/archives/index.html .
> To unsubscribe, mailto:CryptoAPI-signoff-request@DISCUSS.MICROSOFT.COM
>
----------------------------------------------------------------
Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
contains important info. Save time, search the archives at
http://discuss.microsoft.com/archives/index.html .
To unsubscribe, mailto:CryptoAPI-signoff-request@DISCUSS.MICROSOFT.COM
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic