random: Fix kconfig symbol name
s/CSPRING_ENABLED/CSPRNG_ENABLED/g Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
23106b81c8
commit
646a06c9fe
7 changed files with 8 additions and 9 deletions
|
@ -113,7 +113,7 @@ endchoice
|
||||||
#
|
#
|
||||||
config MBEDTLS
|
config MBEDTLS
|
||||||
#config TINYCRYPT
|
#config TINYCRYPT
|
||||||
default y if CSPRING_ENABLED
|
default y if CSPRNG_ENABLED
|
||||||
depends on ENTROPY_GENERATOR
|
depends on ENTROPY_GENERATOR
|
||||||
|
|
||||||
if MBEDTLS
|
if MBEDTLS
|
||||||
|
|
|
@ -62,7 +62,7 @@ endif
|
||||||
#
|
#
|
||||||
config MBEDTLS
|
config MBEDTLS
|
||||||
#config TINYCRYPT
|
#config TINYCRYPT
|
||||||
default y if CSPRING_ENABLED
|
default y if CSPRNG_ENABLED
|
||||||
depends on ENTROPY_GENERATOR
|
depends on ENTROPY_GENERATOR
|
||||||
|
|
||||||
if MBEDTLS
|
if MBEDTLS
|
||||||
|
|
|
@ -63,7 +63,7 @@ endif
|
||||||
#
|
#
|
||||||
config MBEDTLS
|
config MBEDTLS
|
||||||
#config TINYCRYPT
|
#config TINYCRYPT
|
||||||
default y if CSPRING_ENABLED
|
default y if CSPRNG_ENABLED
|
||||||
depends on ENTROPY_GENERATOR
|
depends on ENTROPY_GENERATOR
|
||||||
|
|
||||||
if MBEDTLS
|
if MBEDTLS
|
||||||
|
|
|
@ -16,7 +16,7 @@ choice
|
||||||
|
|
||||||
config JWT_SIGN_RSA
|
config JWT_SIGN_RSA
|
||||||
bool "Use RSA signature (RS-256)"
|
bool "Use RSA signature (RS-256)"
|
||||||
depends on CSPRING_ENABLED
|
depends on CSPRNG_ENABLED
|
||||||
select MBEDTLS
|
select MBEDTLS
|
||||||
|
|
||||||
config JWT_SIGN_ECDSA
|
config JWT_SIGN_ECDSA
|
||||||
|
|
|
@ -70,7 +70,7 @@ config OSDP_SKIP_MARK_BYTE
|
||||||
|
|
||||||
config OSDP_SC_ENABLED
|
config OSDP_SC_ENABLED
|
||||||
bool "OSDP Secure Channel"
|
bool "OSDP Secure Channel"
|
||||||
depends on CSPRING_ENABLED
|
depends on CSPRNG_ENABLED
|
||||||
default y
|
default y
|
||||||
select CRYPTO
|
select CRYPTO
|
||||||
select CRYPTO_MBEDTLS_SHIM
|
select CRYPTO_MBEDTLS_SHIM
|
||||||
|
|
|
@ -72,8 +72,7 @@ endchoice # RNG_GENERATOR_CHOICE
|
||||||
# enabling CS generators. ENTROPY_HAS_DRIVER is the flag indicating the
|
# enabling CS generators. ENTROPY_HAS_DRIVER is the flag indicating the
|
||||||
# CS entropy source.
|
# CS entropy source.
|
||||||
#
|
#
|
||||||
config CSPRING_ENABLED
|
config CSPRNG_ENABLED
|
||||||
# bool "Cryptographically secure RNG functions enabled"
|
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
depends on ENTROPY_HAS_DRIVER
|
depends on ENTROPY_HAS_DRIVER
|
||||||
|
|
|
@ -85,7 +85,7 @@ ZTEST(rand32_common, test_rand32)
|
||||||
"random numbers returned same value with high probability");
|
"random numbers returned same value with high probability");
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_CSPRING_ENABLED)
|
#if defined(CONFIG_CSPRNG_ENABLED)
|
||||||
|
|
||||||
printk("Generating bulk fill cryptographically secure random numbers\n");
|
printk("Generating bulk fill cryptographically secure random numbers\n");
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ ZTEST(rand32_common, test_rand32)
|
||||||
|
|
||||||
printk("Cryptographically secure random number APIs not enabled\n");
|
printk("Cryptographically secure random number APIs not enabled\n");
|
||||||
|
|
||||||
#endif /* CONFIG_CSPRING_ENABLED */
|
#endif /* CONFIG_CSPRNG_ENABLED */
|
||||||
}
|
}
|
||||||
|
|
||||||
ZTEST_SUITE(rand32_common, NULL, NULL, NULL, NULL, NULL);
|
ZTEST_SUITE(rand32_common, NULL, NULL, NULL, NULL, NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue