Skip to content

Commit 3189752

Browse files
Merge pull request #10073 from felixc-arm/remove-inject-entropy
[development] Remove MBEDTLS_PSA_INJECT_ENTROPY
2 parents 064f68e + 1459e75 commit 3189752

File tree

7 files changed

+3
-50
lines changed

7 files changed

+3
-50
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Random seed file created by test scripts and sample programs
22
seedfile
3-
# MBEDTLS_PSA_INJECT_ENTROPY seed file created by the test framework
4-
00000000ffffff52.psa_its
53
# Log files created by all.sh to reduce the logs in case a component runs
64
# successfully
75
quiet-make.*

scripts/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ def realfull_adapter(_name, _value, _active):
9696
'MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG', # behavior change + build dependency
9797
'MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER', # interface and behavior change
9898
'MBEDTLS_PSA_CRYPTO_SPM', # platform dependency (PSA SPM)
99-
'MBEDTLS_PSA_INJECT_ENTROPY', # conflicts with platform entropy sources
10099
'MBEDTLS_RSA_NO_CRT', # influences the use of RSA in X.509 and TLS
101100
'MBEDTLS_SHA256_USE_A64_CRYPTO_ONLY', # interacts with *_USE_A64_CRYPTO_IF_PRESENT
102101
'MBEDTLS_SHA256_USE_ARMV8_A_CRYPTO_ONLY', # interacts with *_USE_ARMV8_A_CRYPTO_IF_PRESENT

tests/configs/user-config-for-test.h

Lines changed: 0 additions & 29 deletions
This file was deleted.

tests/psa-client-server/psasim/src/psa_sim_generate.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
'mbedtls_psa_crypto_free', # redefined rather than wrapped
2828
'mbedtls_psa_external_get_random', # not in the default config, uses unsupported type
2929
'mbedtls_psa_get_stats', # uses unsupported type
30-
'mbedtls_psa_inject_entropy', # not in the default config, generally not for client use anyway
3130
'mbedtls_psa_platform_get_builtin_key', # not in the default config, uses unsupported type
3231
'psa_get_key_slot_number', # not in the default config, uses unsupported type
3332
'psa_key_derivation_verify_bytes', # not implemented yet

tests/scripts/analyze_outcomes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,11 @@ def _has_word_re(words: typing.Iterable[str],
118118
# Untested platform-specific optimizations.
119119
# https://github.com/Mbed-TLS/mbedtls/issues/9588
120120
'Config: MBEDTLS_HAVE_SSE2',
121-
# Obsolete configuration option, to be replaced by
121+
# Obsolete configuration options, to be replaced by
122122
# PSA entropy drivers.
123123
# https://github.com/Mbed-TLS/mbedtls/issues/8150
124124
'Config: MBEDTLS_NO_PLATFORM_ENTROPY',
125+
'Config: MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES',
125126
# Untested aspect of the platform interface.
126127
# https://github.com/Mbed-TLS/mbedtls/issues/9589
127128
'Config: MBEDTLS_PLATFORM_NO_STD_FUNCTIONS',

tests/scripts/components-configuration-crypto.sh

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -261,21 +261,6 @@ component_test_psa_external_rng_use_psa_crypto () {
261261
tests/ssl-opt.sh -f 'Default\|opaque'
262262
}
263263

264-
component_test_psa_inject_entropy () {
265-
msg "build: full + MBEDTLS_PSA_INJECT_ENTROPY"
266-
scripts/config.py full
267-
scripts/config.py set MBEDTLS_PSA_INJECT_ENTROPY
268-
scripts/config.py set MBEDTLS_ENTROPY_NV_SEED
269-
scripts/config.py set MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES
270-
scripts/config.py unset MBEDTLS_PLATFORM_NV_SEED_ALT
271-
scripts/config.py unset MBEDTLS_PLATFORM_STD_NV_SEED_READ
272-
scripts/config.py unset MBEDTLS_PLATFORM_STD_NV_SEED_WRITE
273-
make CC=$ASAN_CC CFLAGS="$ASAN_CFLAGS '-DTF_PSA_CRYPTO_USER_CONFIG_FILE=\"../tests/configs/user-config-for-test.h\"'" LDFLAGS="$ASAN_CFLAGS"
274-
275-
msg "test: full + MBEDTLS_PSA_INJECT_ENTROPY"
276-
make test
277-
}
278-
279264
component_full_no_pkparse_pkwrite () {
280265
msg "build: full without pkparse and pkwrite"
281266

0 commit comments

Comments
 (0)