Skip to content

Commit

Permalink
crypto: prng - Deterministic CPRNG
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
nhorman authored and herbertx committed Jul 10, 2008
1 parent 166247f commit b8454ee
Show file tree
Hide file tree
Showing 4 changed files with 447 additions and 1 deletion.
9 changes: 9 additions & 0 deletions crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion crypto/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ obj-$(CONFIG_CRYPTO_MICHAEL_MIC) += michael_mic.o
obj-$(CONFIG_CRYPTO_CRC32C) += crc32c.o
obj-$(CONFIG_CRYPTO_AUTHENC) += authenc.o
obj-$(CONFIG_CRYPTO_LZO) += lzo.o

obj-$(CONFIG_CRYPTO_PRNG) += prng.o
obj-$(CONFIG_CRYPTO_TEST) += tcrypt.o

#
Expand Down
Loading

0 comments on commit b8454ee

Please sign in to comment.