Skip to content

Commit

Permalink
random: Fix kconfig symbol name
Browse files Browse the repository at this point in the history
s/CSPRING_ENABLED/CSPRNG_ENABLED/g

Signed-off-by: Flavio Ceolin <[email protected]>
  • Loading branch information
Flavio Ceolin authored and MaureenHelm committed Sep 27, 2023
1 parent 23106b8 commit 646a06c
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion soc/arm/nxp_imx/rt/Kconfig.defconfig.series
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ endchoice
#
config MBEDTLS
#config TINYCRYPT
default y if CSPRING_ENABLED
default y if CSPRNG_ENABLED
depends on ENTROPY_GENERATOR

if MBEDTLS
Expand Down
2 changes: 1 addition & 1 deletion soc/arm/nxp_imx/rt5xx/Kconfig.defconfig.series
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ endif
#
config MBEDTLS
#config TINYCRYPT
default y if CSPRING_ENABLED
default y if CSPRNG_ENABLED
depends on ENTROPY_GENERATOR

if MBEDTLS
Expand Down
2 changes: 1 addition & 1 deletion soc/arm/nxp_imx/rt6xx/Kconfig.defconfig.series
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ endif
#
config MBEDTLS
#config TINYCRYPT
default y if CSPRING_ENABLED
default y if CSPRNG_ENABLED
depends on ENTROPY_GENERATOR

if MBEDTLS
Expand Down
2 changes: 1 addition & 1 deletion subsys/jwt/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ choice

config JWT_SIGN_RSA
bool "Use RSA signature (RS-256)"
depends on CSPRING_ENABLED
depends on CSPRNG_ENABLED
select MBEDTLS

config JWT_SIGN_ECDSA
Expand Down
2 changes: 1 addition & 1 deletion subsys/mgmt/osdp/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ config OSDP_SKIP_MARK_BYTE

config OSDP_SC_ENABLED
bool "OSDP Secure Channel"
depends on CSPRING_ENABLED
depends on CSPRNG_ENABLED
default y
select CRYPTO
select CRYPTO_MBEDTLS_SHIM
Expand Down
3 changes: 1 addition & 2 deletions subsys/random/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ endchoice # RNG_GENERATOR_CHOICE
# enabling CS generators. ENTROPY_HAS_DRIVER is the flag indicating the
# CS entropy source.
#
config CSPRING_ENABLED
# bool "Cryptographically secure RNG functions enabled"
config CSPRNG_ENABLED
bool
default y
depends on ENTROPY_HAS_DRIVER
Expand Down
4 changes: 2 additions & 2 deletions tests/crypto/rand32/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ ZTEST(rand32_common, test_rand32)
"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");

Expand All @@ -109,7 +109,7 @@ ZTEST(rand32_common, test_rand32)

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);

0 comments on commit 646a06c

Please sign in to comment.