Dan Griffin's Blog
Comments on security, PKI, smart cards, cryptography, and entrepreneurship.
New CNG Sample Source Code is Available
September 13, 2007
I’ve recently been provisioning a new dev machine. While searching for the download point for the CNG (Crypto API: Next Generation) SDK, I stumbled upon some new CNG-related sample code offered by Microsoft separately from the SDK. The new sample can be downloaded here - http://www.microsoft.com/downloads/details.aspx?familyid=34C59FA0-E265-4E44-9A3B-9370EECDC5A9&displaylang=en. Here’s what I found:
2. Open the CNGLibrary.sln file and Build.
3. In Solution Explorer in Visual Studio 2005, right-click on CNGTestApp and select Set as StartUp Project
4. Press F5 to start debugging
Cool – but then again, the .NET Framework already supports all of the SHA-2 algorithms natively, so exposing a more complex CNG scenario via PInvoke would have been preferable. Like how about ECDH (Elliptic Curve Diffie-Hellman) key agreement? Anyway – there it is.
No Comments »
No comments yet.
RSS feed for comments on this post. TrackBack URL