Bence Szépkúti
2d5cf03f00
Dummy commit for CI testing
...
This commit should only exist on the public repo
2025-06-01 12:53:11 +02:00
Manuel Pégourié-Gonnard
1a83e0c84d
Merge pull request #165 from valeriosetti/issue9618-framework
...
[framework] MBEDTLS_PLATFORM_GET_ENTROPY_ALT in 4.0
2025-04-29 10:09:24 +02:00
Valerio Setti
c612667e75
test: fake_external_rng_for_test: add more functionalities to mbedtls_platform_get_entropy()
...
Signed-off-by: Valerio Setti <vsetti@baylibre.com >
2025-04-28 17:09:28 +02:00
Gilles Peskine
1e7b5d54d3
Merge pull request #163 from gilles-peskine-arm/pylint-check-str-concat-framework
...
Prepare for Pylint: Complain about a missing comma in multiline lists of strings
2025-04-24 19:03:54 +02:00
Gilles Peskine
d960349538
Merge remote-tracking branch 'main' into pylint-check-str-concat-framework
2025-04-24 16:09:31 +02:00
Gilles Peskine
bb749456e9
Use + for string concatenation in lists
...
Use the + operator instead of relying on string concatenation across lines.
This is necessary even inside parentheses to pass
check-str-concat-over-line-jumps with Pylint << 3.0.0.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2025-04-24 15:09:50 +02:00
Gilles Peskine
bb8e457dbc
Merge pull request #161 from valeriosetti/issue9618-framework
...
[framework] MBEDTLS_PLATFORM_GET_ENTROPY_ALT in 4.0
2025-04-23 18:39:44 +02:00
Gilles Peskine
4a3be27784
Merge pull request #136 from gilles-peskine-arm/union-initialization-gcc15-framework-preliminaries
...
Fix union initialization in PSA operations for GCC 15: new test helpers
2025-04-23 18:39:23 +02:00
Gilles Peskine
767b6f5913
Merge remote-tracking branch 'main' into union-initialization-gcc15-framework-preliminaries
2025-04-23 10:25:09 +02:00
Ronald Cron
4a841219ff
Merge pull request #159 from valeriosetti/issue157-framework
...
[framework] Make demo_common.sh usable on its own
2025-04-18 10:27:42 +02:00
Valerio Setti
dbf62a596d
tests: fake_external_rng_for_test: use SIZE_MAX to disable wrong entropy contnet
...
Use SIZE_MAX instead of 0 in order to be more future proof.
Signed-off-by: Valerio Setti <vsetti@baylibre.com >
2025-04-18 10:21:40 +02:00
Valerio Setti
6f0b670d3a
tests: rename mbedtls_platform_get_entropy_alt()
...
Since mbedtls_platform_get_entropy_alt() is being renamed to
mbedtls_platform_get_entropy() on the tf-psa-crypto repo, this commit
adapts to testing support.
Signed-off-by: Valerio Setti <vsetti@baylibre.com >
2025-04-17 16:49:09 +02:00
Valerio Setti
5944104a52
scripts: make demo_common.sh usable on its own
...
When looking for $root_dir, do not try to guess if the root path is
Mbed TLS or TF-PSA-Crypto one, but simply look for
"scripts/project_name.txt" file without reading it. In this way the
initial part of the script does not need "project_detection.sh".
Once the root path is found, we can easily:
- source "project_detection.sh";
- check if query_compile_time_config is available or not.
This commit also updates "dlopen_demo.sh" so that it simply sources
"demo_common.sh" and not "project_detection.sh" (not directly at least).
Signed-off-by: Valerio Setti <vsetti@baylibre.com >
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2025-04-17 16:02:50 +02:00
Gilles Peskine
7ef92b15c1
Merge pull request #125 from gilles-peskine-arm/mbedtls_test_psa_raw_key_agreement_with_self-iop-consistency-framework
...
Add consistency checks to mbedtls_test_psa_raw_key_agreement_with_self()
2025-04-17 10:33:51 +02:00
Gilles Peskine
fb43aa35d8
Merge commit 'a39ba59344fd4f1d0ee267ca414b9420d5dca9f5' into mbedtls_test_psa_raw_key_agreement_with_self-iop-consistency-framework
2025-04-16 15:58:52 +02:00
Gilles Peskine
9e612a462b
Merge pull request #156 from felixc-arm/move-public-headers
...
Adjust scripts to accommodate public header move
2025-04-16 14:22:07 +02:00
Valerio Setti
566659e20e
tests: add functions to force behavior of mbedtls_platform_get_entropy_alt()
...
Signed-off-by: Valerio Setti <vsetti@baylibre.com >
2025-04-16 11:24:11 +02:00
Valerio Setti
f4662dbaf6
generate_config_tests.py: remove usage of MBEDTLS_NO_PLATFORM_ENTROPY
...
Signed-off-by: Valerio Setti <vsetti@baylibre.com >
2025-04-15 17:19:15 +02:00
Felix Conway
bf36088bd3
Adjust scripts to accommodate public header move
...
Signed-off-by: Felix Conway <felix.conway@arm.com >
2025-04-09 10:24:07 +01:00
Ronald Cron
a39ba59344
Merge pull request #141 from valeriosetti/issue138-framework
...
[framework] Add test_tf_psa_crypto_cmake_shared to components-build-system.sh
2025-04-04 10:01:09 +02:00
Valerio Setti
60c8e52c6e
scripts: adapt demo_common.sh and project_detection.sh to tf-psa-crypto
...
Signed-off-by: Valerio Setti <vsetti@baylibre.com >
2025-04-03 10:58:13 +02:00
Valerio Setti
e01486b644
tests: adapt dlopen_demo.sh to run also from tf-psa-crypto repo
...
Signed-off-by: Valerio Setti <vsetti@baylibre.com >
2025-04-03 10:58:13 +02:00
Ronald Cron
22d1df9159
Merge pull request #151 from valeriosetti/issue9618-framework
...
[framework] MBEDTLS_PLATFORM_GET_ENTROPY_ALT in 4.0
2025-04-01 15:13:58 +02:00
Ronald Cron
b5b3d94f4d
Merge pull request #152 from ronald-cron-arm/make-generated-files-follow-up
...
Make generated files follow-up
2025-04-01 14:15:03 +02:00
Valerio Setti
8c555e2496
test: src: add implementation for mbedtls_platform_get_entropy_alt() for tests
...
Signed-off-by: Valerio Setti <vsetti@baylibre.com >
2025-04-01 09:27:44 +02:00
Ronald Cron
a8e29ac653
Fix pylint W0105 warning
...
Fix pylint W0105 warning:
framework/scripts/make_generated_files.py:37:8: W0105:
String statement has no effect (pointless-string-statement)
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2025-03-29 11:35:09 +01:00
Ronald Cron
0af45b5e27
Add handshake-generated.sh generation
...
Add handshake-generated.sh generation in
make_generated_files.py
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2025-03-29 09:45:18 +01:00
Ronald Cron
ac46287c2e
Fix make_generated_files.py for Windows
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2025-03-28 19:23:53 +01:00
Ronald Cron
28dc4cae3f
Merge pull request #149 from ronald-cron-arm/make-generated-files
...
Enable checking of generated files and code style in TF-PSA-Crypto
Validated by the CI of https://github.com/Mbed-TLS/mbedtls/pull/10062 and https://github.com/Mbed-TLS/mbedtls/pull/10069 .
2025-03-25 09:25:39 +01:00
Ronald Cron
2b03d62924
Merge pull request #147 from valeriosetti/issue8151-framework
...
[framework] Remove the dynamic SE interface in 4.0
Validated by the CI of #10050
2025-03-25 09:21:18 +01:00
Ronald Cron
72b5acd590
Merge pull request #146 from gabor-mezei-arm/9682_remove_RSA_key_exchange
...
Remove the RSA-decryption key exchange
2025-03-20 17:25:25 +01:00
Valerio Setti
de6f92735e
test: all-helpers: configure MBEDTLS_PSA_CRYPTO_SE_C only in 3.6 branch
...
Signed-off-by: Valerio Setti <vsetti@baylibre.com >
2025-03-18 17:00:08 +01:00
Gabor Mezei
52f59e13a0
Do not delete element from cipher translation
...
Partially revert commit 97d7e2adfa
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com >
2025-03-14 18:17:02 +01:00
Gabor Mezei
c6dcc376dd
Revert "Renove TLS-RSA"
...
This reverts commit 1db57b9260 .
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com >
2025-03-14 18:13:47 +01:00
Ronald Cron
14af66a46e
Adapt code_style.py to TF-PSA-Crypto
...
Adapt code_style.py to be able to
check C code style in TF-PSA-Crypto.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2025-03-14 14:53:50 +01:00
Ronald Cron
28a4c35a48
Adapt psa_wrapper.py to TF-PSA-Crypto
...
Adapt psa_wrapper.py to be able to
generate PSA wrappers in TF-PSA-Crypto.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2025-03-14 14:53:50 +01:00
Ronald Cron
68685cec29
make_generated_files.py: Add --check option
...
Add --check option to be able to check
that make_generated_files.py and the
build systems are in-sync.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2025-03-14 14:53:48 +01:00
Ronald Cron
5eafd1d81e
make_generated_files.py: Add support for Mbed TLS 4.x generated files
...
Align how things are done in Mbed TLS 4.x and
TF-PSA-Crypto. Needed for the eventual
removal of the make build system in
Mbed TLS 4.x.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2025-03-14 14:53:06 +01:00
Ronald Cron
d066fc7fa2
Add make_generated_files.py
...
The script generates the TF-PSA-Crypto
generated files in the TF-PSA-Crypto source
tree. It also provides (option --list) the
list of generated files.
It is entended to replace `make generated_files`
(not make build system in TF-PSA-Crypto) and
`check-generated-files -u`.
The listing of the generated files is intended
to be used in code_style.py instead of the
parsing of `check-generated-files.sh`.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2025-03-14 14:52:59 +01:00
Ronald Cron
4dbb36c3f2
Adapt generate_config_tests.py
...
Do not generate test_suite_config.psa_boolean.data
in Mbed TLS 4.x. It is generated in TF-PSA-Crypto
context in that case.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2025-03-13 15:48:41 +01:00
Ronald Cron
789036f21f
Change default path for test_keys.h and test_certs.h
...
As part of the move to generate test_keys.h
and test_certs.h in the build tree instead of
the source tree, change their default location
to `tests/include/test` to minimize the number
of new paths for headers.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2025-03-13 15:48:41 +01:00
Ronald Cron
1bbe7ad9ca
Fix some documentation in build_tree.py
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2025-03-13 15:48:41 +01:00
Manuel Pégourié-Gonnard
426127bdf6
Merge pull request #148 from minosgalanakis/feature_merge_defragmentation
...
Merge of defragmentation feature branch onto main
2025-03-13 09:23:45 +01:00
Minos Galanakis
cab0c5fe19
Merge branch 'features/tls-defragmentation' into feature_merge_defragmentation
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2025-03-12 15:20:20 +00:00
Gabor Mezei
1db57b9260
Renove TLS-RSA
...
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com >
2025-03-10 12:53:30 +01:00
Gilles Peskine
6a7a144a08
Merge pull request #143 from gilles-peskine-arm/defragment-incremental-framework
...
Incremental TLS handshake defragmentation tests
2025-03-07 13:17:32 +01:00
Gilles Peskine
8d85112a44
Fix cipher suite syntax in requires call
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2025-03-06 09:32:20 +01:00
Gilles Peskine
8a534d9d78
Pacify pylint
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2025-03-06 09:32:20 +01:00
Gilles Peskine
38bc126e4b
Assert log for both initial and subsequent handshake fragments
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2025-03-06 09:32:20 +01:00
Gilles Peskine
52d8701b99
Don't skip defragmentation test cases wih length < 16
...
Require the bug with defragmentation of encrypted handshake messages to be
fixed.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2025-03-06 09:32:20 +01:00