LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-27-2009, 01:04 AM   #1
saurabhchokshi
Member
 
Registered: May 2007
Posts: 35

Rep: Reputation: 15
Install Crypto API on Linux Kernel


Hello,

I want to install crypto api in Kernel 2.6.27.11-generic. However, I do not know what is the exact patch I need to download to install crypto api in Kernel.

I want to use some hash functions for the worm detection strings.

Please help me out as soon as possible.

Cheers,
Saurabh
 
Old 04-27-2009, 02:18 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally Posted by saurabhchokshi View Post
I want to install crypto api in Kernel 2.6.27.11-generic. However, I do not know what is the exact patch I need to download to install crypto api in Kernel.

I want to use some hash functions for the worm detection strings.
You don't need to patch the kernel. Linux has come with a crypto API for many, many years.
 
Old 04-27-2009, 11:20 PM   #3
saurabhchokshi
Member
 
Registered: May 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks but I did not know how to use MD5 and SHA1 hash functions in Linux Kernel.

I figured out how to use the functions.
crypto_alloc_hash("sha1",0,CRYPTO_ALGO_ASYNC);

But I do not know how to use kernel modules like sha1_generic.ko, md5.ko, sha256_generic.ko.

I did not find any header files to use such kernel modules.

Could you please suggest me the best way to use SHA1 and MD5 hash functions in Linux Kernel?

Cheers,
Saurabh Chokshi
 
Old 04-28-2009, 05:07 AM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Your question has been moved to Programming for more adequate exposure.
 
Old 04-30-2009, 06:34 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 28,722
Blog Entries: 55

Rep: Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325
Have a look at Michal Kosmulski's http://cryproc.sourceforge.net/?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use kernel's crypto API inside the kernel to compute an MD5 hash ? linuxabhinav Linux - Kernel 2 05-28-2008 11:35 AM
Linux kernel API. Cflags needed? rvca Programming 2 02-28-2008 12:20 AM
True stream cipher in crypto API module? ta0kira Linux - Security 0 07-23-2005 02:10 AM
Linux Kernel API Question Neruocomp Programming 2 06-23-2005 07:24 PM
linux crypto api saajii Programming 3 08-31-2004 09:16 PM


All times are GMT -5. The time now is 08:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration