Re: How a custom CSP call MS default (base)CSP?
From: Doug Barlow (soft_pedal_at_hotmail.com)
Date: 01/25/05
- Next message: Alun Jones [MSFT]: "Re: Socket with ssl support"
- Previous message: John Fred: "Set Protection to a folder"
- In reply to: Phoebe: "How a custom CSP call MS default (base)CSP?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 25 Jan 2005 08:32:09 -0800
You can also just call the standard CryptoAPI routines from your CSP. Doing
that will automatically validate the signature of the Microsoft CSP during
the call to CryptAcquireContext. The rest of the Microsoft Crypt... calls
just call that DLL's corresponding CP... function, as Laszlo described.
(Make sure you explicitly name the Microsoft CSPs in the call to
CryptAcquireContext, as opposed to taking the default CSP for the type, just
to be safe.)
I've used both techniques without problems.
Doug Barlow
The Soft Pedal Shop
CSP Design & Development Consulting
http://www.SoftPedal.net
-- "Phoebe" <Phoebe@discussions.microsoft.com> wrote in message news:5F4C5A97-4078-4497-A610-52008B204054@microsoft.com... >I am writing my own CSP. Most of the functionality will be the same as MS > base CSP. How do I call MS base CSP in my own CSP? for example, I got a > csp.dll. In this csp.dll, how do I call the functions in the rsabase.dll. > > Thank you
- Next message: Alun Jones [MSFT]: "Re: Socket with ssl support"
- Previous message: John Fred: "Set Protection to a folder"
- In reply to: Phoebe: "How a custom CSP call MS default (base)CSP?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|