Dan Griffin's Blog
Comments on security, PKI, smart cards, cryptography, and entrepreneurship.
Smart Card Development Article in MSDN Magazine
October 10, 2006
I’m proud to have an article published in the November, 2006 edition of MSDN Magazine! It’s entitled Smart Storage – Protect Your Data Via Managed Code and the Windows Vista Smart Card APIs. Looks like the online version hasn’t been updated yet; I’ll provide a link as soon as it’s there.
I think the coolest thing about the article, and certainly the aspect of writing it that consumed the most time, is that it demonstrates exposing complex Win32 native APIs to managed code. This is accomplished via a combination of new native shims and managed PInvoke stubs. APIs exposed in this manner, which had not been previously available to managed apps at all, include the Windows Smart Card (PC/SC) APIs and the new Smart Card Module API (which accompanies Microsoft’s Base Smart Card Crypto Provider).
In summary, the article didn’t really have enough space to discuss all of the issues I encountered (i.e. in writing the PInvoke stubs and shims) in as much detail as I would have liked, but I tried to make the sample code quite clear and well-commented. If you’re a smart card developer, or want to be one, please check it out and let me know what you think.
One additional point that didn’t get addressed in the version of the article that went to press – in order to do anything interesting with the sample code, you’ll need some smart cards, and they must be compatible with the new card module interface mentioned above. Here are some pointers.
- Technology vendor Axalto told me they’d be making their card module based Cryptoflex .NET smart card available to developers in summer 2006. Check out http://www.market.axalto.com. I have used their cards in testing this project and they work well. Axalto sells suitable card readers (IFDs) from the same site.
- Infineon has also written a solid card module in support of their SICRYPT chip. Available via the web, various integrators are already offering cards based on that chip. I found them by searching for “sicrypt card module smart cards.”
No Comments »
No comments yet.
RSS feed for comments on this post. TrackBack URL