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
Harry Ramsey
fe81cfeac3
Refactor scripts to use config.py instead of config.pl
...
This commit refactors scripts to use config.py which replaces config.pl.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-12-02 16:23:06 +00:00
Harry Ramsey
c6d2e4ecfc
Remove obsolete tcp_client.pl
...
This commit removes tcp_client.pl and removes it from ssl-opt.sh as it
has been replaced by test_suite_ssl.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-12-02 16:23:06 +00:00
Harry Ramsey
cff96f600a
Remove obsolete Travis CI scripts
...
This commit removes obsolete Travis CI scripts that are no longer
required due to the transition to a publically available CI image.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-12-02 16:23:06 +00:00
Harry Ramsey
0569c017c8
Remove obsolete Docker CI scripts
...
This commit removes Docker CI scripts from the repository as they are no
longer necessary with CI images being publically available.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-12-02 16:23:06 +00:00
Harry Ramsey
cbd00b0563
Fix check-generated-files.sh generate_psa_constants.py path
...
This commit fixes the path to generate_psa_constants.py in
check-generatedfiles.sh
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-12-02 15:48:27 +00:00
Harry Ramsey
c0dd3e4988
Remove irrelevant components
...
This commit removes irrelevant components that are no longer needed in
the 4.0 release.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-12-02 10:52:05 +00:00
Paul Elliott
017722f043
Merge pull request #9785 from waleed-elmelegy-arm/add-iop-export-pub-key-setup-abort
...
Add PSA interruptible export public-key setup & abort APIs
2024-11-29 21:07:34 +00:00
Waleed Elmelegy
b30233f6c3
Change key param to mbedtls_svc_key_id_t in psa_export_public_key_iop_setup()
...
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-27 16:08:01 +00:00
Elena Uziunaite
8993fecae4
Define FRAMEWORK
...
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-11-27 13:15:04 +00:00
Elena Uziunaite
ef40183c34
Use new functions
...
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-11-27 13:15:04 +00:00
Ronald Cron
28a26ece1d
Merge pull request #9771 from ronald-cron-arm/remove-psa-crypto-config
...
Remove MBEDTLS_PSA_CRYPTO_CONFIG configuration option
2024-11-21 16:57:55 +00:00
Ronald Cron
93ba625b96
Remove MBEDTLS_PSA_CRYPTO_CONFIG configuration option
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
2024-11-21 15:52:06 +01:00
Ronald Cron
e0ebf55a19
Move back *config_test_driver* headers from the framework
...
config_test_driver.h and
crypto_config_test_driver_extension.h are
configuration files thus they better fit in
mbedtls branches than in the framework.
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
2024-11-21 15:51:58 +01:00
Janos Follath
f36693822f
Merge pull request #9778 from waleed-elmelegy-arm/add-iop-export-pub-key-headers
...
Add header and documentation for interruptible ECC export public-key
2024-11-21 13:54:29 +00:00
Harry Ramsey
7fa6caed4c
Concatenate program demos between Mbed TLS and TF-PSA-Crypto
...
This commit concatenates the running of program demos between Mbed TLS
and TF-PSA-Crypto.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-11-20 16:21:35 +00:00
Harry Ramsey
be20844c23
Update path in run_demos.py
...
This commit updates the path to programs in run_demos.py to
tf-psa-crypto/programs.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-11-20 16:21:35 +00:00
Harry Ramsey
61811e6595
Update path in check-generated-files.sh
...
This commit updates the path to generate_psa_constants.py in
check-generated-files.sh
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-11-20 16:21:32 +00:00
Harry Ramsey
61372efe95
Refactor tests and programs comment
...
This commit refactors comments refering to tf-psa-crypto for the
correct path upon repo split.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-11-20 16:20:52 +00:00
Harry Ramsey
75e8e030b1
Fix paths for programs/psa
...
This commit fixes paths for programs/psa to tf-psa-crypto/programs/psa.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-11-20 16:20:48 +00:00
David Horstmann
ed91f8890f
Replace tabs with spaces in Makefile
...
Tabs were introduced in a place where spaces are being used for
alignment. Correct this.
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-19 17:15:30 +00:00
David Horstmann
0771253cf4
Properly clean instrument_record_status.h
...
The paths to this header in clean: targets were missed previously when
changing paths to reflect the move of the header to the framework.
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:45 +00:00
David Horstmann
8a5b3afc5d
Update paths to generated PSA test wrappers
...
These are not moving to the framework, so their paths are fine to stay
as they are, undo the update done through global search-replace.
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:44 +00:00
David Horstmann
d962680cbc
Update generate path to instrument_record_status.h
...
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:44 +00:00
David Horstmann
dc45951cf6
Update path to PSA crypto alt headers
...
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:44 +00:00
David Horstmann
8a8d56aa87
Update make clean target with moved test helpers
...
Test helpers that are now moved to the framework must be cleaned
properly.
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:44 +00:00
David Horstmann
e6a7c247fd
Update test_keys.h generation in Makefile
...
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:44 +00:00
David Horstmann
6bbd9c0b70
Update libtestdriver paths in tests/Makefile
...
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:44 +00:00
David Horstmann
cbab2ff06e
Update path substitution for TF-PSA-Crypto tests
...
This path substitution needs to be performed on the new paths in the
framework as well.
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:44 +00:00
David Horstmann
69b12ee121
Add tests/Makefile targets for moved test helpers
...
Everything that has been moved to tests/src needs a Makefile target in
order to be built.
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:44 +00:00
David Horstmann
1b457a9e4d
Undo incorrect path substitution
...
The find and replace of tests/src -> framework/tests/src and
tests/include -> framework/tests/include accidentally caused an
incorrect path substitution to be performed in tests/Makefile.
Undo this change and make the substitution correct again.
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:44 +00:00
David Horstmann
306f4106cf
Add the framework/tests/include path to testsuites
...
These need to include from the framework path as this is where most test
helpers have been moved to.
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:44 +00:00
David Horstmann
5b93d97b95
Update references to test helpers
...
Replace:
* tests/src -> framework/tests/src
* tests/include -> framework/tests/include
Except for occurrences of:
* tests/src/test_helpers (since this only contains ssl_helpers.c)
* tests/src/test_certs.h
* tests/include/alt_dummy
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:44 +00:00
David Horstmann
531adafb0a
Move some test helpers out of Mbed TLS
...
Everything not TLS-related and not ALT-interface-related has been moved
out of tests/src and tests/include and into the framework, except for
the PSA test wrappers.
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:43 +00:00
Janos Follath
fe4b02cc69
Merge pull request #9602 from paul-elliott-arm/add_key_agreement_negative_tests
...
Add key agreement negative tests
2024-11-18 13:02:03 +00:00
Waleed Elmelegy
fad77f1ff4
Add iop export public-key generated test wrappers
...
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-15 17:27:36 +00:00
Ronald Cron
fee08b45e2
Merge pull request #9760 from ronald-cron-arm/tf-psa-crypto-cmake
...
Finalize the integration of the TF-PSA-Crypto build system into the Mbed TLS one
2024-11-15 17:05:16 +00:00
Paul Elliott
66d7bcbef1
Add key export on successful key agreement
...
More sanity checks on key coming out of key agreement.
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
2024-11-15 14:09:03 +00:00
Paul Elliott
2c9d398553
Add new psa_key_agreement() to key exercises
...
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
2024-11-15 14:09:03 +00:00
Paul Elliott
b1039afbd0
Regenerate PSA Sim headers
...
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
2024-11-15 14:09:03 +00:00
Paul Elliott
958bdf7f16
Add required code to psa_sim_generate.pl
...
Non generated code was unfortnuately added to psa_sim_crypto_server.c,
fix that by adding it to the generation scripts.
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
2024-11-15 14:09:03 +00:00
Paul Elliott
d118cd21d6
Fix definition of psa_generate_key_iop_complete()
...
Incorrect usage of psa_key_id_t breaks ability to regenerate psa_sim
headers properly, should have been mbedtls_svc_key_id_t in the first
place, so replace with that.
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
2024-11-14 19:07:58 +00:00
Ronald Cron
0cc68601e6
Merge pull request #9611 from gabor-mezei-arm/9142_update_depends.py_cipher_chaining_domain
...
Update the `cipher_chaining` domain to use PSA macros in `depends.py`
2024-11-14 14:32:35 +00:00