How to add additional algorithm in cryptoAPI on linux

When I check / proc / crypto, it shows me:

abhi@ubuntu:/proc$ cat crypto 
name         : stdrng
driver       : krng
module       : kernel
priority     : 200
refcnt       : 1
selftest     : passed
type         : rng
seedsize     : 0

name         : md5
driver       : md5-generic
module       : kernel
priority     : 0
refcnt       : 1
selftest     : passed
type         : shash
blocksize    : 64
digestsize   : 16

I need to use aes256 for one of my projects.

Can someone point out how I can add this algorithm to the crypto api, or is there any other way I can achieve this (ubuntu 10.4, 2.6.32-35).

Is there a list of supported (default) algorithms implemented using crypto api for the 2.6 kernel?

+3
source share
2 answers

In 2002, Abhi, the kernel cryptography API in 2002, was created for the protocols , which requires cryptography inside the kernel (in kernel mode, when you do not have a reliable way to use user space cryptography):

IPSec, API , , , , (/dev/random), (, CIFS) , .

, ​​ FS , . lib API- , , , . , . openssl, Libgcrypt .. , Qt, .

cryptoapi , ( , ). , , ls /lib/modules/*/*/arch/*/crypto/ /lib/modules/*/*/crypto/; , , modprobe aes_generic modprobe aes-x86_64, API.

modprobe aes-x86_64 :

# cat /proc/crypto |grep aes
name         : aes
driver       : aes-asm
module       : aes_x86_64
name         : aes
driver       : aes-generic
module       : aes_generic
+4

aes-generic.c

-1

All Articles