Custom CSP (Cryptography) for Testing RRS feed

  • Question

  • I am working with a code (application) which uses CryptoAPI to encrypt content. Application needs to read its own configuration to determine the CSP and issue requests through CryptoAPI to get the content encrypted.

    The system will eventually have its own CSP for application to work with but for the time being, to go ahead with development of other components, I need a custom CSP which can be used with CryptoAPIs - something which will say just write logs in a file and return the dummy content as encrypted content.

    I tried using the shell CSP in CSKPD but it appears on Windows 7, it wont work. When I run testcsp.exe, I get following error - Calling CryptAcquireContext - CryptAcquireConext returned error 80090019 FAILED.

    Can someone guide me on how I can create a test/sample CSP? Also is there a way I can achieve this with Managed code (preferably C#) instead of working with Native C++ code?


    Wednesday, November 27, 2013 12:31 PM