Re: CPSignHash error 80090008
From: iandoll (iandoll_at_yahoo.com)
Date: 12/20/04
- Next message: finecats: "RE: Security newbie question"
- Previous message: olegsobol_at_gmail.com: "Base64 encode in VB6, decode in Java PROBLEM!!!"
- In reply to: lelteto: "RE: CPSignHash error 80090008"
- Next in thread: lelteto: "Re: CPSignHash error 80090008"
- Reply: lelteto: "Re: CPSignHash error 80090008"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 20 Dec 2004 10:37:40 -0800
Laszlo,
thanks for fast response.
I have made changes as you suggested. So my CPAcquireContext function
calling CryptAcquireContext(...PROV_RSA_SCHANNEL..).
Also I changes type of MyCSP to 12 (PROV_RSA_SCHANNEL).
When I now start IE, everything working same as previous
(CPAcquireContext,
CPCreateHash, CPSetHashParam, CPSignHash, CPDestroyHash,
CPReleaseContext),
but CPSignHash generate 8009008 error.
This is how CPSignHash look like:
retVal = CryptSignHash(hHash, dwKeySpec, NULL, dwFlags, pbSignature,
pcbSigLen);
if (!retVal) { ERROR_MSGBOX("CPSignHash-ERROR");}
return retVal;
and CPAcquireContext is:
BOOL WINAPI CPAcquireContext(
OUT HCRYPTPROV *phProv,
IN LPCSTR szContainer,
IN DWORD dwFlags,
IN PVTableProvStruc pVTable)
{
BOOL retVal = FALSE;
DWORD dwLastError = 0;
char * szProviderName = NULL;
retVal = CryptAcquireContext(phProv, szContainer, szProviderName,
PROV_RSA_SCHANNEL, dwFlags);
if (!retVal) { ERROR_MSGBOX("CPAcquireContext-ERROR");}
return retVal;
}
Also I test my CSP with CSP Test suite, and work fine in 76% otherwise
is
error or warning.
Do you know what is cause of this error, or maybe where can I find
sample
(empty, just simple wrapper) custom CSP implementation.
Thanks,
Ian
- Next message: finecats: "RE: Security newbie question"
- Previous message: olegsobol_at_gmail.com: "Base64 encode in VB6, decode in Java PROBLEM!!!"
- In reply to: lelteto: "RE: CPSignHash error 80090008"
- Next in thread: lelteto: "Re: CPSignHash error 80090008"
- Reply: lelteto: "Re: CPSignHash error 80090008"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|