diff options
author | Yuan Kang <Yuan.Kang@freescale.com> | 2012-06-22 20:48:50 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2012-06-27 02:42:06 -0400 |
commit | e24f7c9e87d46fad06bf1097d48f9923acd8e61c (patch) | |
tree | 15a2f57fd7e43acd51c95779e00f75038ffd8d88 /drivers/crypto/caam/Kconfig | |
parent | 643b39b031f546c7c3c60ef360b8260aa2b32762 (diff) |
crypto: caam - hwrng support
caam_read copies random bytes from two buffers into output.
caam rng can fill empty buffer 0xffff bytes at a time,
but the buffer sizes are rounded down to multiple of cacheline size.
Signed-off-by: Yuan Kang <Yuan.Kang@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam/Kconfig')
-rw-r--r-- | drivers/crypto/caam/Kconfig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/crypto/caam/Kconfig b/drivers/crypto/caam/Kconfig index e61b7f50785e..502a7f3cca5f 100644 --- a/drivers/crypto/caam/Kconfig +++ b/drivers/crypto/caam/Kconfig | |||
@@ -82,3 +82,16 @@ config CRYPTO_DEV_FSL_CAAM_AHASH_API | |||
82 | 82 | ||
83 | To compile this as a module, choose M here: the module | 83 | To compile this as a module, choose M here: the module |
84 | will be called caamhash. | 84 | will be called caamhash. |
85 | |||
86 | config CRYPTO_DEV_FSL_CAAM_RNG_API | ||
87 | tristate "Register caam device for hwrng API" | ||
88 | depends on CRYPTO_DEV_FSL_CAAM | ||
89 | default y | ||
90 | select CRYPTO_RNG | ||
91 | select HW_RANDOM | ||
92 | help | ||
93 | Selecting this will register the SEC4 hardware rng to | ||
94 | the hw_random API for suppying the kernel entropy pool. | ||
95 | |||
96 | To compile this as a module, choose M here: the module | ||
97 | will be called caamrng. | ||