crypto: rng - RNG interface and implementation
This patch adds a random number generator interface as well as a cryptographic pseudo-random number generator based on AES. 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 <nhorman@tuxdriver.com> Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au>
Showing
- crypto/Kconfig 16 additions, 0 deletionscrypto/Kconfig
- crypto/Makefile 3 additions, 1 deletioncrypto/Makefile
- crypto/ansi_cprng.c 417 additions, 0 deletionscrypto/ansi_cprng.c
- crypto/krng.c 66 additions, 0 deletionscrypto/krng.c
- crypto/rng.c 126 additions, 0 deletionscrypto/rng.c
- include/crypto/internal/rng.h 26 additions, 0 deletionsinclude/crypto/internal/rng.h
- include/crypto/rng.h 75 additions, 0 deletionsinclude/crypto/rng.h
- include/linux/crypto.h 25 additions, 0 deletionsinclude/linux/crypto.h
Loading
Please register or sign in to comment