[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#645885: linux-image-2.6-486: af_alg module not included - crypto_user_api not set in .config



Package: linux-image-2.6-486
Version: 2.6.39-3~bpo60+1
Severity: normal
Tags: patch


Kernel does not provide the af_alg module. 
The .config file should contain the following values:
CONFIG_CRYPTO_USER_API=m
CONFIG_CRYPTO_USER_API_HASH=m
CONFIG_CRYPTO_USER_API_SKCIPHER=m

These two options enables the user-spaces interface for hash and symmetric key cipher algorithms.

Kernel 2.6.38 introduced an API to access the kernel crypto API from userspace. 
While there was a port of BSD's cryptodev for linux which basically provides 
the same functionality, the cryptodev code never made it into the mainline of the kernel. 


Patch:
--- /boot/config-2.6.39-bpo.2-486	2011-08-04 13:46:48.000000000 +0200
+++ .config	2011-10-18 08:23:20.000000000 +0200
@@ -5560,8 +5560,9 @@ CONFIG_CRYPTO_LZO=m
 # Random Number Generation
 #
 CONFIG_CRYPTO_ANSI_CPRNG=m
-# CONFIG_CRYPTO_USER_API_HASH is not set
-# CONFIG_CRYPTO_USER_API_SKCIPHER is not set
+CONFIG_CRYPTO_USER_API=m
+CONFIG_CRYPTO_USER_API_HASH=m
+CONFIG_CRYPTO_USER_API_SKCIPHER=m
 CONFIG_CRYPTO_HW=y
 CONFIG_CRYPTO_DEV_PADLOCK=m
 CONFIG_CRYPTO_DEV_PADLOCK_AES=m



-- System Information:
Debian Release: 6.0.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.39-bpo.2-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



Reply to: