What do you guys use for crypto stuff in the Windows kernel? I know
Vista has documented some of the kernel crypto, but most of us have to
support older systems. At the moment I only need to compute md5 and I
am curious what you guys use, since I’ve seen people porting OpenSSL
into the kernel and obviously I don’t want to go that route.
>support older systems. At the moment I only need to compute md5 and I
am curious what you guys use, since I’ve seen people porting OpenSSL
Porting a single MD5 source file is OK, more so, the algo itself is published in the RFC, so, you can write your own same-kind code and be free from any licensing (open source too).
Just validate it via the unit test against the known good code.
On Mon, Aug 23, 2010 at 6:46 PM, Maxim S. Shatskih
wrote: > Porting a single MD5 source file is OK, more so, the algo itself is published in the RFC, so, you can write your own same-kind code and be free from any licensing (open source too). > > Just validate it via the unit test against the known good code.
I have ported md5.c from OpenBSD (to be free from any legalese stuff). As the OpenBSD version was from the kernel, it was clean and self contained, so porting it was trivial (3 minutes). However, I was interested about more complex stuff in case I will ever need it for something bigger.
The Intel Performance Primitives (IPP) package has cryptographic support routines (hashes, block ciphers, etc.), and works in the kernel. Additionally, there is some sample code on their support site that illustrates use of the libraries in Windows and Linux kernel drivers.