aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJianchuan Wang <jianchuan.wang@windriver.com>2015-11-05 10:21:58 +0800
committerBruce Ashfield <bruce.ashfield@windriver.com>2016-08-30 12:11:59 -0400
commit14331f2ab70a18143144f16d927737f4197f426a (patch)
tree5ccfa3b3c891e7b67437038254dc7414f0a3087c
parentff3004d29d8c37231a04f4700081cb8ac641c1b3 (diff)
downloadlinux-yocto-14331f2ab70a18143144f16d927737f4197f426a.tar.gz
linux-yocto-14331f2ab70a18143144f16d927737f4197f426a.tar.bz2
linux-yocto-14331f2ab70a18143144f16d927737f4197f426a.zip
cryptodev: add Kbuild hooks
Hook cryptodev-linux into the kernel build as a tristate option. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Jianchuan Wang <jianchuan.wang@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r--crypto/Kconfig8
-rw-r--r--crypto/Makefile1
2 files changed, 9 insertions, 0 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig
index 84d71482bf08..5d0c9e1746a3 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -21,6 +21,14 @@ if CRYPTO
comment "Crypto core or helper"
+config CRYPTODEV
+ tristate "cryptodev module support"
+ help
+ This is a /dev/crypto device driver, equivalent to those in OpenBSD or
+ FreeBSD. The main idea is to access of existing ciphers in kernel space
+ from userspace, thus enabling re-use of a hardware implementation of a
+ cipher.
+
config CRYPTO_FIPS
bool "FIPS 200 compliance"
depends on (CRYPTO_ANSI_CPRNG || CRYPTO_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS
diff --git a/crypto/Makefile b/crypto/Makefile
index 99cc64ac70ef..c8583620158d 100644
--- a/crypto/Makefile
+++ b/crypto/Makefile
@@ -138,3 +138,4 @@ obj-$(CONFIG_ASYNC_CORE) += async_tx/
obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys/
obj-$(CONFIG_CRYPTO_HASH_INFO) += hash_info.o
obj-$(CONFIG_CRYPTO_ABLK_HELPER) += ablk_helper.o
+obj-$(CONFIG_CRYPTODEV) += ../drivers/staging/crypto/cryptodev/