background preloader

CAPI Microsoft Windows

Facebook Twitter

The Smart Card Cryptographic Service Provider Cookbook. Anusha Nirmalananthan Microsoft Corporation October 2002 Applies to: Microsoft® Windows® Cryptographic Service Providers Smart cards Summary: This article provides background information for Cryptographic Service Provider (CSP) developers.

The Smart Card Cryptographic Service Provider Cookbook

It brings together information already available on MSDN about smart cards, cryptography, and CSPs, then goes on to detail the calls that are made to the CSPs in typical scenarios, important design considerations, and smart card-specific error codes. (24 printed pages) CryptSetProvParam Function. Crypt32.dll Detail. CryptAcquireContext function.

With the appropriate setting of dwFlags, this function can also create and destroy key containers and can provide access to a CSP with a temporary key container if access to a private key is not required.

CryptAcquireContext function

Syntax BOOL WINAPI CryptAcquireContext( _Out_ HCRYPTPROV *phProv, _In_ LPCTSTR pszContainer, _In_ LPCTSTR pszProvider, _In_ DWORD dwProvType, _In_ DWORD dwFlags ); Parameters phProv [out] pszContainer [in] NTE error codes.