Gabor Mezei
fb36814669
Use default value for the filename
parameter
...
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
2024-12-05 10:11:46 +01:00
Gabor Mezei
75c7e13fa7
Update framework
...
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
2024-12-05 10:02:39 +01:00
Gabor Mezei
a53712d21d
Rename tf_psa_crypto_config.py to config.py
...
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
2024-12-05 10:00:41 +01:00
Gabor Mezei
680a7c30c2
Use only one config file in config.py
...
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
2024-12-05 10:00:41 +01:00
Gabor Mezei
37bf61ee96
Fix crypto config path
...
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
2024-12-05 10:00:41 +01:00
Gabor Mezei
1044a8066b
Use better config name
...
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
2024-12-05 10:00:41 +01:00
Gabor Mezei
afc5fa5ad2
Rename TfPSA to TFPSA
...
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
2024-12-05 10:00:41 +01:00
Gabor Mezei
871cde613d
Add full
adapter for tf-psa_crypto_config.py
...
Add the `full` adapter to enable most of the config feature.
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
2024-12-05 10:00:40 +01:00
Gabor Mezei
3191144e22
Add config.py for TF PSA Crypto
...
Add minimal required classes to use `get`, `set` and `unset` operations.
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
2024-12-05 10:00:40 +01:00
Gabor Mezei
c707ac56fa
Add python module serach path library for TF PSA Crypto
...
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
2024-12-05 10:00:40 +01:00
Ronald Cron
21837fc476
Merge pull request #9567 from minosgalanakis/config_split
...
PSA Crypto Configuration Split
2024-12-04 17:03:21 +00:00
Minos Galanakis
64d2238e4d
Updated Framework Pointer
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 15:08:39 +00:00
Minos Galanakis
4ce27cb49b
ssl-opt: CONFIGS_ENABLED list should always end with a space char.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 15:08:39 +00:00
Minos Galanakis
e2d0074d4f
Added changelog for the configuration split.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 15:08:39 +00:00
Minos Galanakis
848333de3a
analyze_outcomes: Moved migrated to ts-psa-crypto tests cases.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 15:08:39 +00:00
Minos Galanakis
a8c85f8a93
check_names: Updated macro regex to accept TF_PSA_X names.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 10:41:11 +00:00
Minos Galanakis
a4a37372a0
config.py: Do not set default entry for tf-psa-crypto config.
...
Both type of config entries, boolean and value containing
reside in tf-psa-crypto confing files.
A default value will now be set only for PSA_WANT_X symbols.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 10:41:11 +00:00
Minos Galanakis
a17ffc7a0b
test suites: Refactored component_test_ccm_aes_sha256.
...
This commit moves the tf-psa-crypto configuration options
for this test to `crypto-config-ccm-aes-sha256.h`.
A blank MbedTLS configuration file is now used for the library
side.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 10:41:11 +00:00
Minos Galanakis
473241e5b2
build_cmake_custom_config_file: Added test coverage for crypto_user_config.h
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 10:41:11 +00:00
Minos Galanakis
c1be62361c
tf-psa-crypto config docs: Removed references to MBEDTLS_PSA_CRYPTO_CONFIG.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 10:41:09 +00:00
Minos Galanakis
00b641c206
test_components: Updated config.py to use -c for setting CRYPTO_CONFIG_H entries.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:57:56 +00:00
Minos Galanakis
2154ce2040
component_test_ccm_aes_sha256: Workaround for split libtestdriver config.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:57:56 +00:00
Minos Galanakis
4f619e12e7
Renamed MBEDTLS_PSA_CRYPTO_CONFIG_FILE & MBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE
...
Files have been renamed respectively to:
- TF_PSA_CRYPTO_CONFIG_FILE
- TF_PSA_CRYPTO_USER_CONFIG_FILE
As per design proposal:
https://github.com/Mbed-TLS/mbedtls/blob/development/docs/proposed/config-split.md
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:57:56 +00:00
Minos Galanakis
c6e58aa4ac
test_memsan_constant_flow_psa: Set to not re-generate files.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:57:56 +00:00
Minos Galanakis
5da58e5c18
tests/configs: Adjusted for migration of MBEDTLS_PSA_CRYPTO_CONFIG_FILE.
...
Moving forward the MBEDTLS_PSA_CRYPTO_CONFIG_FILE now resides in the
ts-psa/crypto configuration. This patch removes it from the library
configuration files, and updates the tests to explicitely use it.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:57:56 +00:00
Minos Galanakis
4f7f132536
test-data: Adjusted check-feature test to seek MBEDTLS_TIMING_C
.
...
Features are generated by scripts/generate_features.pl which will reside
in the MbedTLS repository, while MBEDTLS_AES_C now resides in tf-psa-crypto.
Picking `MBEDTLS_TIMING_C` feature ensures the original test's requirements
are satisfied.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:57:56 +00:00
Minos Galanakis
981d7d67e1
test-suites: Replaced NIST_KW_C
with SSL_ALL_ALERT_MESSAGES
...
`MBEDTLS_NIST_KW_C` resides in tf-psa-crypto. This commit updates
the tests using it to use `SSL_ALL_ALERT_MESSAGES` instead.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:57:56 +00:00
Minos Galanakis
473b9609e8
components-build-system: Added support for psa_crypto custom configuration file.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:57:56 +00:00
Minos Galanakis
aa2f12cc8e
component-configuration-crypto: Set user-config-for-test as the MBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:57:56 +00:00
Minos Galanakis
23452f5c0b
libtestdriver: Addded crypto_config_test_driver
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:57:56 +00:00
Minos Galanakis
1f0d469e1d
Cleaned up MbedTLS/tf-psa-crypto configs.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:57:56 +00:00
Minos Galanakis
bee70a7341
configs: Removed references to MBEDTLS_USE_PSA_CRYPTO
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:57:56 +00:00
Minos Galanakis
2db2f8ba6d
configs: Migrated config-symmetric-only
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:57:56 +00:00
Minos Galanakis
463a3ec6f9
configs: Migrated config-thread
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:57:56 +00:00
Minos Galanakis
bca85e677b
configs: Migrated config-tfm
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:57:56 +00:00
Minos Galanakis
0d8e319176
configs: Migrated config-suite-b
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:57:56 +00:00
Minos Galanakis
1ae28bf34a
configs: Migrated config-ccm-psk-(d)tls1_2
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:57:56 +00:00
Minos Galanakis
861b90c257
Migrated General and test configuration options (contd).
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:50:53 +00:00
Minos Galanakis
2968dfc2f3
crypto_config: Added Cryptographic mechanism selection section.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:50:37 +00:00
Minos Galanakis
cb32d084aa
crypto_config: Migrated newer configuration options.
...
This commit, moves configuration entries that were not present
during the design-review.
It also updates the proposal accordingly.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:50:09 +00:00
Minos Galanakis
f33250fcc1
crypto_config: Migrated MBEDTLS_NULL_CIPHER in legacy-crypto
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:49:55 +00:00
Minos Galanakis
127ffb507c
crypto_config: Migrated legacy-crypto selection options.
...
Moved configuration entries in-line with the design proposal.
https://github.com/Mbed-TLS/mbedtls/blob/development/docs/proposed/config-split.md
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:49:08 +00:00
Minos Galanakis
a19e07fd14
crypto_config: Migrated crypto-drivers selection options.
...
Moved configuration entries in-line with the design proposal.
https://github.com/Mbed-TLS/mbedtls/blob/development/docs/proposed/config-split.md
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:38:02 +00:00
Minos Galanakis
626439ae50
crypto_config: Migrated PSA core selection options.
...
Moved configuration entries in-line with the design proposal.
https://github.com/Mbed-TLS/mbedtls/blob/development/docs/proposed/config-split.md
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:29:30 +00:00
Minos Galanakis
14489499e7
crypto_config: Migrated data format selection options.
...
Moved configuration entries in-line with the design proposal.
https://github.com/Mbed-TLS/mbedtls/blob/development/docs/proposed/config-split.md
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:29:15 +00:00
Minos Galanakis
45544e0bc3
crypto_config: Migrated cryptographic mechanism selection options.
...
Moved configuration entries in-line with the design proposal.
https://github.com/Mbed-TLS/mbedtls/blob/development/docs/proposed/config-split.md
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:29:04 +00:00
Minos Galanakis
2056958eb3
crypto_config: Migrated General and test configuration options.
...
Moved configuration entries in-line with the design proposal.
https://github.com/Mbed-TLS/mbedtls/blob/development/docs/proposed/config-split.md
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:28:51 +00:00
Minos Galanakis
25ae42e677
crypto_config: Migrated Platform options.
...
Moved configuration entries in-line with the design proposal.
https://github.com/Mbed-TLS/mbedtls/blob/development/docs/proposed/config-split.md
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-04 09:28:23 +00:00
Janos Follath
b6860cf7f9
Merge pull request #9781 from yanesca/remove_USE_PSA_from_API_doc_9632
...
Remove discussions of MBEDTLS_USE_PSA_CRYPTO in API documentation
2024-12-03 16:35:01 +00:00
Janos Follath
f4f37eced7
Merge pull request #9810 from SuperIlu/development
...
Fix compilation on MS-DOS DJGPP
2024-12-03 09:12:18 +00:00