mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
crypto: prng - Deterministic CPRNG
This patch adds a cryptographic pseudo-random number generator based on CTR(AES-128). It is meant to be used in cases where a deterministic CPRNG is required. One of the first applications will be as an input in the IPsec IV generation process. Signed-off-by: Neil Horman <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
166247f46a
commit
b8454eebe3
4 changed files with 447 additions and 1 deletions
|
|
@ -666,6 +666,15 @@ config CRYPTO_LZO
|
|||
help
|
||||
This is the LZO algorithm.
|
||||
|
||||
comment "Random Number Generation"
|
||||
|
||||
config CRYPTO_PRNG
|
||||
tristate "Pseudo Random Number Generation for Cryptographic modules"
|
||||
help
|
||||
This option enables the generic pseudo random number generator
|
||||
for cryptographic modules. Uses the Algorithm specified in
|
||||
ANSI X9.31 A.2.4
|
||||
|
||||
source "drivers/crypto/Kconfig"
|
||||
|
||||
endif # if CRYPTO
|
||||
|
|
|
|||
Loading…
Reference in a new issue