Skip to content

Commit 92efce2

Browse files
felixc-armronald-cron-arm
authored andcommitted
[development] Remove code relating to MBEDTLS_PSA_INJECT_ENTROPY
Signed-off-by: Felix Conway <[email protected]>
1 parent e57ea21 commit 92efce2

File tree

7 files changed

+1
-50
lines changed

7 files changed

+1
-50
lines changed

.gitignore

-2
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.*

docs/proposed/config-split.md

-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ PSA_WANT_\* macros as in current `crypto_config.h`.
247247
//#define MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER
248248
//#define MBEDTLS_PSA_CRYPTO_SPM
249249
#define MBEDTLS_PSA_CRYPTO_STORAGE_C
250-
//#define MBEDTLS_PSA_INJECT_ENTROPY
251250
#define MBEDTLS_PSA_ITS_FILE_C
252251
#define MBEDTLS_PSA_KEY_STORE_DYNAMIC
253252
//#define MBEDTLS_PSA_STATIC_KEY_SLOTS

scripts/config.py

-1
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

-29
This file was deleted.

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

-1
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/components-configuration-crypto.sh

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