Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1641100
| From | Stephan Müller <smueller@chronox.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v11 4/5] LRNG - enable compile |
| Date | 2017-05-14 16:40 +0200 |
| Message-ID | <tH2QF-2Jn-15@gated-at.bofh.it> (permalink) |
| References | <tH2QF-2Jn-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Add LRNG compilation support. Signed-off-by: Stephan Mueller <smueller@chronox.de> --- drivers/char/Kconfig | 10 ++++++++++ drivers/char/Makefile | 10 +++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig index 31adbeb..ee26190 100644 --- a/drivers/char/Kconfig +++ b/drivers/char/Kconfig @@ -594,5 +594,15 @@ config TILE_SROM source "drivers/char/xillybus/Kconfig" +config LRNG + bool "Linux Random Number Generator" + select CRYPTO_DRBG_MENU + select CRYPTO_CMAC if CRYPTO_DRBG_CTR + help + The Linux Random Number Generator (LRNG) is the replacement + of the legacy /dev/random provided with drivers/char/random.c. + It generates entropy from different noise sources and + delivers significant entropy during boot. + endmenu diff --git a/drivers/char/Makefile b/drivers/char/Makefile index 6e6c244..618bebb 100644 --- a/drivers/char/Makefile +++ b/drivers/char/Makefile @@ -2,7 +2,15 @@ # Makefile for the kernel character device drivers. # -obj-y += mem.o random.o +obj-y += mem.o + +ifeq ($(CONFIG_LRNG),y) + obj-$(CONFIG_LRNG) += lrng.o + lrng-y += lrng_base.o lrng_kcapi.o +else + obj-y += random.o +endif + obj-$(CONFIG_TTY_PRINTK) += ttyprintk.o obj-y += misc.o obj-$(CONFIG_ATARI_DSP56K) += dsp56k.o -- 2.9.3
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v11 0/5] /dev/random - a new approach Stephan Müller <smueller@chronox.de> - 2017-05-14 16:40 +0200 [PATCH v11 2/5] random: conditionally compile code depending on LRNG Stephan Müller <smueller@chronox.de> - 2017-05-14 16:40 +0200 [PATCH v11 1/5] crypto: DRBG - externalize DRBG functions for LRNG Stephan Müller <smueller@chronox.de> - 2017-05-14 16:40 +0200 [PATCH v11 4/5] LRNG - enable compile Stephan Müller <smueller@chronox.de> - 2017-05-14 16:40 +0200
csiph-web