Jakub C
Jakub C

Reputation: 615

windows CSP api

I am trying to write my own CSP. I am trying to do this by implementing a dll file, but I am not sure if I am on right way.

I found something like this: Cryptographic Service Provider Developer's Toolkit (CSPDK)

there are samples with CSP API

CPAcquireContext CPGenKey ... etc.

(it looks for me like an old api or api for winCE)

And here comes my question, which functions should I implement to provide new CSP for windows 7 and XP.

Is my plan good? - should I implement simple DLL and put her reference in register? Or am i missing something?

Upvotes: 3

Views: 1798

Answers (2)

Raj
Raj

Reputation: 1163

Your HSM vendor will have their CSP written for you. You will get this csp when you install their driver. All you will be required is to access this CSP from your code.

To interface with your HSM vendor's CSP(check what they support), either you should use PKCS#11 or use the cryptoAPI CSP functions.

Upvotes: 0

Maarten Bodewes
Maarten Bodewes

Reputation: 93948

You might be missing CNG which is a (long term) replacement for the MS Crypto API. You can create modules for that as well. Unfortunately it is only available since Vista. Windows XP is too old (and you should probably not be producing new applications for XP anyway).

Upvotes: 1

Related Questions