Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > kernel-mode encryption

Reply
Thread Tools Display Modes

kernel-mode encryption

 
 
Ronny S
Guest
Posts: n/a

 
      02-23-2006
Can the Windows Cryptographic API be used in kernel-mode or is it only for
user-mode applications? If it is user-mode only, is there a Cryptographic
API in Windows available to kernel-mode drivers?

If the above is not available, are there any third-party encryption
libraries that can be used in a kernel-mode driver?

Thanks for your replies.
 
Reply With Quote
 
 
 
 
cristalink
Guest
Posts: n/a

 
      02-24-2006
>> Can the Windows Cryptographic API be used in kernel-mode

No. But you can have a user mode program that will provide crypto services
for your driver.

>> is there a Cryptographic API in Windows available to kernel-mode drivers


There is fips.sys that provides certain encryption algorithms. It is not
documented, though can be used. Apart from this, you need 3rd party code.

--
http://www.cristalink.com


"Ronny S" <> wrote in message
news:71B9BF46-9543-4F0C-BAA5-...
> Can the Windows Cryptographic API be used in kernel-mode or is it only for
> user-mode applications? If it is user-mode only, is there a Cryptographic
> API in Windows available to kernel-mode drivers?
>
> If the above is not available, are there any third-party encryption
> libraries that can be used in a kernel-mode driver?
>
> Thanks for your replies.



 
Reply With Quote
 
Doron Holan [MS]
Guest
Posts: n/a

 
      02-24-2006
don't rely on fips.sys, there is no guarantee it will be in the next OS
release or SP.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"cristalink" <> wrote in message
news:...
>>> Can the Windows Cryptographic API be used in kernel-mode

>
> No. But you can have a user mode program that will provide crypto services
> for your driver.
>
>>> is there a Cryptographic API in Windows available to kernel-mode drivers

>
> There is fips.sys that provides certain encryption algorithms. It is not
> documented, though can be used. Apart from this, you need 3rd party code.
>
> --
> http://www.cristalink.com
>
>
> "Ronny S" <> wrote in message
> news:71B9BF46-9543-4F0C-BAA5-...
>> Can the Windows Cryptographic API be used in kernel-mode or is it only
>> for
>> user-mode applications? If it is user-mode only, is there a
>> Cryptographic
>> API in Windows available to kernel-mode drivers?
>>
>> If the above is not available, are there any third-party encryption
>> libraries that can be used in a kernel-mode driver?
>>
>> Thanks for your replies.

>
>



 
Reply With Quote
 
Maxim S. Shatskih
Guest
Posts: n/a

 
      02-25-2006
I would pull the code from OpenSSL.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation

http://www.storagecraft.com

"Ronny S" <> wrote in message
news:71B9BF46-9543-4F0C-BAA5-...
> Can the Windows Cryptographic API be used in kernel-mode or is it only for
> user-mode applications? If it is user-mode only, is there a Cryptographic
> API in Windows available to kernel-mode drivers?
>
> If the above is not available, are there any third-party encryption
> libraries that can be used in a kernel-mode driver?
>
> Thanks for your replies.


 
Reply With Quote
 
Credzba
Guest
Posts: n/a

 
      12-01-2009
I need certified encryption in my kernel mode driver on Windows XP.
The only Microsoft solution is FIPS.SYS.
The Microsoft web page says "A kernel mode user of the FIPS.SYS driver must
be able to reference the FipsXXX functions before using them. The user needs
to acquire the table of pointers to the FipsXXX functions from the FIPS.SYS
driver. The user accomplishes the table acquisition by building a Fips
function table request irp (I/O request packet) and then sending the irp to
the FIPS.SYS diver via the IoCallDriver function. Further information on irp
and IoCallDriver can be found on Microsoft Windows 2000 Driver Development
Kit."

What is irp that needs to be built, and what is the format of the function
table returned?

I realize this driver does not exist on later platforms, but it is the best
I have for XP machines.

"cristalink" wrote:

> >> Can the Windows Cryptographic API be used in kernel-mode

>
> No. But you can have a user mode program that will provide crypto services
> for your driver.
>
> >> is there a Cryptographic API in Windows available to kernel-mode drivers

>
> There is fips.sys that provides certain encryption algorithms. It is not
> documented, though can be used. Apart from this, you need 3rd party code.
>
> --
> http://www.cristalink.com
>
>
> "Ronny S" <> wrote in message
> news:71B9BF46-9543-4F0C-BAA5-...
> > Can the Windows Cryptographic API be used in kernel-mode or is it only for
> > user-mode applications? If it is user-mode only, is there a Cryptographic
> > API in Windows available to kernel-mode drivers?
> >
> > If the above is not available, are there any third-party encryption
> > libraries that can be used in a kernel-mode driver?
> >
> > Thanks for your replies.

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User mode/Kernel Mode context question finecats Windows Vista Drivers 1 02-27-2005 11:43 PM
Reasonable to put the encryption module for an encrypted filesystem driver outside the kernel? h.wulff Windows Vista Drivers 9 01-16-2005 04:45 PM
Calling Win32 API User mode functions from Kernel Mode Manohara.K Windows Vista Drivers 2 08-11-2004 01:54 AM
Share memory between user mode and kernel mode Pascal Windows Vista Drivers 1 02-27-2004 10:07 PM
Re: How detect USER Mode Application is loaded in kernel mode driver William Ingle Windows Vista Drivers 5 07-02-2003 02:14 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59