Re: CPSignHash error 80090008
From: lelteto (lelteto_at_discussions.microsoft.com)
Date: 12/22/04
- Next message: lelteto: "Re: CPSignHash error 80090008"
- Previous message: lelteto: "RE: Decrypting RSA signature using public key fails"
- In reply to: iandoll: "Re: CPSignHash error 80090008"
- Next in thread: iandoll: "Re: CPSignHash error 80090008"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 22 Dec 2004 14:17:02 -0800
Yes, just like for context you should create you own struct for KEY and HASH
context (ie. hKey and hHash); you store the handle in your struct and pass
back eg. the address of your struct as the handle from your CSP.
Laszlo Elteto
SafeNet, Inc.
"iandoll" wrote:
> Hi Laszlo,
>
> I have done everything as you described. Instead of calling CryptoXXX
> function,
> I have loaded 'Microsoft RSA SChannel Cryptographic Provider', which is
>
> rsaenh.dll (checked in registry)
> A have created my own CSP_CONTEXT structure in which I keep pointers
> on CPxxx functions and HCRYPTPROV of default provider and also I have
> made all
> CPxxx functions where I am calling appropriate CPxx function from DLL.
>
> When I go to desired URL, CSP is loaded and all function from it is
> called, but
> function CPSignHash still generates error 80090008.
> I you like I can send you complete project?
>
> Do I need to make own structure for HCRYPTHASH as well?
> And not to forward HCRYPTHASH which is created by default CSP.
> I can make something like:
> typedef struct CSP_HASH {
> HCRYPTHASH hHash;
> } CSP_HASH, *PCSP_HASH;
>
> Thanks,
> Ian
>
>
- Next message: lelteto: "Re: CPSignHash error 80090008"
- Previous message: lelteto: "RE: Decrypting RSA signature using public key fails"
- In reply to: iandoll: "Re: CPSignHash error 80090008"
- Next in thread: iandoll: "Re: CPSignHash error 80090008"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|