Skip to content

Commit 3d92a16

Browse files
components-configuration-crypto: Removed legacy options.
Removed setters for `MBEDTLS_CTR_DRBG_USE_128_BIT_KEY` and `MBEDTLS_ENTROPY_FORCE_SHA256` Signed-off-by: Minos Galanakis <[email protected]>
1 parent cb16f5c commit 3d92a16

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

tests/scripts/components-configuration-crypto.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2357,7 +2357,6 @@ component_test_ctr_drbg_aes_256_sha_256 () {
23572357
msg "build: full + MBEDTLS_PSA_CRYPTO_RNG_HASH PSA_ALG_SHA_256 (ASan build)"
23582358
scripts/config.py full
23592359
scripts/config.py unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
2360-
scripts/config.py set MBEDTLS_ENTROPY_FORCE_SHA256
23612360
scripts/config.py set MBEDTLS_PSA_CRYPTO_RNG_HASH PSA_ALG_SHA_256
23622361
CC=$ASAN_CC cmake -D CMAKE_BUILD_TYPE:String=Asan .
23632362
make
@@ -2367,28 +2366,27 @@ component_test_ctr_drbg_aes_256_sha_256 () {
23672366
}
23682367

23692368
component_test_ctr_drbg_aes_128_sha_512 () {
2370-
msg "build: full + MBEDTLS_CTR_DRBG_USE_128_BIT_KEY (ASan build)"
2369+
msg "build: full + set MBEDTLS_PSA_CRYPTO_RNG_STRENGTH 128 (ASan build)"
23712370
scripts/config.py full
23722371
scripts/config.py unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
2373-
scripts/config.py set MBEDTLS_CTR_DRBG_USE_128_BIT_KEY
2372+
scripts/config.py set MBEDTLS_PSA_CRYPTO_RNG_STRENGTH 128
23742373
CC=$ASAN_CC cmake -D CMAKE_BUILD_TYPE:String=Asan .
23752374
make
23762375

2377-
msg "test: full + MBEDTLS_CTR_DRBG_USE_128_BIT_KEY (ASan build)"
2376+
msg "test: full + set MBEDTLS_PSA_CRYPTO_RNG_STRENGTH 128 (ASan build)"
23782377
make test
23792378
}
23802379

23812380
component_test_ctr_drbg_aes_128_sha_256 () {
2382-
msg "build: full + MBEDTLS_CTR_DRBG_USE_128_BIT_KEY + MBEDTLS_PSA_CRYPTO_RNG_HASH PSA_ALG_SHA_256 (ASan build)"
2381+
msg "build: full + set MBEDTLS_PSA_CRYPTO_RNG_STRENGTH 128 + MBEDTLS_PSA_CRYPTO_RNG_HASH PSA_ALG_SHA_256 (ASan build)"
23832382
scripts/config.py full
23842383
scripts/config.py unset MBEDTLS_MEMORY_BUFFER_ALLOC_C
2385-
scripts/config.py set MBEDTLS_CTR_DRBG_USE_128_BIT_KEY
2386-
scripts/config.py set MBEDTLS_ENTROPY_FORCE_SHA256
2384+
scripts/config.py set MBEDTLS_PSA_CRYPTO_RNG_STRENGTH 128
23872385
scripts/config.py set MBEDTLS_PSA_CRYPTO_RNG_HASH PSA_ALG_SHA_256
23882386
CC=$ASAN_CC cmake -D CMAKE_BUILD_TYPE:String=Asan .
23892387
make
23902388

2391-
msg "test: full + MBEDTLS_CTR_DRBG_USE_128_BIT_KEY + MBEDTLS_PSA_CRYPTO_RNG_HASH PSA_ALG_SHA_256 (ASan build)"
2389+
msg "test: full + set MBEDTLS_PSA_CRYPTO_RNG_STRENGTH 128 + MBEDTLS_PSA_CRYPTO_RNG_HASH PSA_ALG_SHA_256 (ASan build)"
23922390
make test
23932391
}
23942392

0 commit comments

Comments
 (0)