subsys/random: Add cryptographically secure and bulk fill functions

1) Add cryptographically secure random functions to provide
FIPS 140-2 compliant random functions.

2) Add name to random function choice selectors to ease
selection in SOC .defconfig files

3) Add bulk fill random functions.

Signed-off-by: David Leach <david.leach@nxp.com>
This commit is contained in:
David Leach 2019-07-23 14:16:24 -05:00 committed by Kumar Gala
commit afdc63f320
17 changed files with 596 additions and 42 deletions

View file

@ -8,16 +8,15 @@ config TINYCRYPT
help
This option enables the TinyCrypt cryptography library.
if TINYCRYPT
config TINYCRYPT_CTR_PRNG
bool "PRNG in counter mode"
depends on TINYCRYPT
help
This option enables support for the pseudo-random number
generator in counter mode.
config TINYCRYPT_SHA256
bool "SHA-256 Hash function support"
depends on TINYCRYPT
help
This option enables support for SHA-256
hash function primitive.
@ -38,7 +37,6 @@ config TINYCRYPT_SHA256_HMAC_PRNG
config TINYCRYPT_ECC_DH
bool "ECC_DH anonymous key agreement protocol"
depends on TINYCRYPT
help
This option enables support for the Elliptic curve
Diffie-Hellman anonymous key agreement protocol.
@ -48,7 +46,6 @@ config TINYCRYPT_ECC_DH
config TINYCRYPT_ECC_DSA
bool "ECC_DSA digital signature algorithm"
depends on TINYCRYPT
help
This option enables support for the Elliptic Curve Digital
Signature Algorithm (ECDSA).
@ -58,7 +55,6 @@ config TINYCRYPT_ECC_DSA
config TINYCRYPT_AES
bool "AES-128 decrypt/encrypt"
depends on TINYCRYPT
help
This option enables support for AES-128 decrypt and encrypt.
@ -85,3 +81,4 @@ config TINYCRYPT_AES_CMAC
depends on TINYCRYPT_AES
help
This option enables support for AES-128 CMAC mode.
endif