Waleed Elmelegy
ce1c04d447
Fix everst build issue
...
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com >
2024-08-22 15:21:33 +01:00
Gilles Peskine
94599c0e3b
Merge pull request #23 from misch7/mbedtls-pr-9189
...
Generate static test functions & wrappers
2024-08-13 11:41:45 +02:00
Michael Schuster
6a1dc7daa9
Update unit test for generate_test_code.py to take static test functions & wrappers into account
...
Signed-off-by: Michael Schuster <michael@schuster.ms >
2024-08-09 18:08:17 +02:00
Michael Schuster
17bedf7059
Generate static test functions & wrappers to fix missing-prototype errors in mbedtls/tests/suites
...
Required for: https://github.com/Mbed-TLS/mbedtls/pull/9189
Signed-off-by: Michael Schuster <michael@schuster.ms >
2024-08-09 18:08:15 +02:00
Ronald Cron
331565b041
Merge pull request #35 from gabor-mezei-arm/9158_update_config.py_for_crypto_config
...
Validated by #9229 and #9432 CI.
2024-08-01 11:54:49 +02:00
Gabor Mezei
35b0e3495e
Fix pylint issue
...
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com >
2024-07-30 12:09:40 +02:00
Gabor Mezei
e8b041bcd6
Fix pylint issues
...
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com >
2024-07-25 14:14:39 +02:00
Gabor Mezei
a758beb103
Add compatibility with 3.6
...
Use the old `ConfigFile` class for the 3.6
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com >
2024-07-25 10:15:28 +02:00
Gabor Mezei
05433e9097
Use updated config.py classes
...
Let the default config file determined by the `CryptoConfig` class.
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com >
2024-07-25 10:15:23 +02:00
Paul Elliott
e8b4ae9bc4
Merge pull request #38 from Mbed-TLS/dev/minos/minor/code_wrappers_fix_identation
...
c_wrapper_generator: Increased robustness of whitespace capture.
2024-07-23 17:09:58 +01:00
Minos Galanakis
c801fc75af
c_wrapper_generator: Increased robustness of whitespace capture.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-23 16:03:01 +01:00
Ronald Cron
33d7886be1
Merge pull request #36 from ronald-cron-arm/move-crypto-test-suites
...
Adapt to the move of crypto test suites to tf-psa-crypto directory
2024-07-23 16:58:04 +02:00
Tom Cosgrove
e03b865d1b
Merge pull request #25 from minosgalanakis/feature/code_wrappers
...
Feature: code wrappers subpackage
2024-07-23 10:15:09 +01:00
minosgalanakis
c6b46474bf
c_wrapper_generator: Fixed an edge-case in strip_indentation().
...
Co-authored-by: Gilles Peskine <gilles.peskine@arm.com >
Signed-off-by: minosgalanakis <30719586+minosgalanakis@users.noreply.github.com >
2024-07-22 16:00:56 +01:00
Minos Galanakis
01343e254c
c_wrapper_generator: _function_guards are set as instance vars.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-22 12:33:00 +01:00
Minos Galanakis
d17a507a08
c_wrapper_generator: Minor fixes to strip_indentation().
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-22 12:29:41 +01:00
Minos Galanakis
bd6648f6d2
psa_wrapper: Set PSAWrapperConfiguration variables to instance vars.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-19 16:54:05 +01:00
Minos Galanakis
6ea9a8db81
c_wrapper_generator: Refactored strip_indentation().
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-19 16:31:00 +01:00
Minos Galanakis
28bb689124
psa_wrapper: Changed naming convention for class variables.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-18 16:49:20 +01:00
Minos Galanakis
b62fd8ebfb
generate_psa_wrappers: Reintroduced main() function.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-17 21:56:48 +01:00
Minos Galanakis
0c8454aed0
psa_wrapper: Adjusted input parameter default.
...
in_headers for PSAWrapper, PSALoggingWrapper,
PSATestWrapper and PSALoggingTestWrapper is
now set as Optional parameter with None as default.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-17 21:36:34 +01:00
Minos Galanakis
0ef9b2d05c
c_wrapper_generator: Refactored blockstr_format().
...
* Method has been renamed to strip_identation().
* Dependency to inspect module has been removed.
* Added ident_lv parameter.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-17 21:36:34 +01:00
Ronald Cron
fc464209a9
psa_storage.py: Add include path
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-07-17 09:24:03 +02:00
Minos Galanakis
03bfc58000
psa_wrapper: Moved input_headers from configuration class.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-16 09:50:14 +01:00
Minos Galanakis
eea3fe35ba
c_wrapper_generator: Optimised prologue spacing.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-16 09:50:14 +01:00
Minos Galanakis
5c07d10e83
c_wrapper_generator: Added blockstr_format utility function.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-16 09:50:14 +01:00
Minos Galanakis
4af4535931
c_wrapper_generator.py: Migrated block-strings to fstrings.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-16 09:50:14 +01:00
Minos Galanakis
fdb9b5b6c7
psa_wrapper: Minor refactoring.
...
* Updated documentation
* Renamed PSAWrapperFG -> PSAWrapperConfiguration
* Renamed members of PSAWrapperConfiguration
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-16 09:50:14 +01:00
Ronald Cron
df7024c723
Adapt path to test_suite_psa_crypto_metadata.data
...
Adapt path to test_suite_psa_crypto_metadata.data
in the case of mbedtls:development.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-07-15 09:19:00 +02:00
Ronald Cron
9eeacb7125
Merge pull request #32 from ronald-cron-arm/adapt-to-crypto-modules-migration
...
Adapt to crypto modules migration
2024-07-10 11:56:49 +02:00
Ronald Cron
17d3392189
Adapt crypto core directory path
...
Adapt crypto core directory path in
mbedtls due to the move of the
PSA crypto core to tf-psa-crypto/core.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2024-07-10 08:10:06 +02:00
Ronald Cron
8853c84712
Merge pull request #18 from Mbed-TLS/dev/davidhorstmann-arm/add-test-data-files
...
Move `tests/data_files` to `data_files` in framework
2024-07-09 08:35:12 +02:00
David Horstmann
1b173ae6f9
Update paths in generate_test_cert_macros.py
...
Tell the test certificate generation script to get the jinja template
from, and output the resulting header to, the framework repo.
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-07-05 15:50:40 +01:00
David Horstmann
cb7dfe8662
Merge branch 'tmp-branch-move-files-to-framework' into dev/davidhorstmann-arm/add-test-data-files
2024-07-05 15:40:17 +01:00
David Horstmann
7fee5fbdbc
Move some files to framework repository
...
Signed-off-by: David Horstmann <david.horstmann@arm.com >
2024-07-05 15:40:15 +01:00
Gilles Peskine
675e150b0f
Merge pull request #9212 from eleuzi01/replace-mbedtls-md-can-sha3-256
...
Replace MBEDTLS_MD_CAN_SHA3_256 with PSA_WANT_ALG_SHA3_256
2024-07-05 11:09:47 +00:00
Minos Galanakis
8eb02d1c34
code_wrapper: Doc-string fixes.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-05 09:49:55 +01:00
Minos Galanakis
425fb3b807
psa_wrapper: Adjusted header parsing logic.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-05 09:35:41 +01:00
Minos Galanakis
462927f3db
code_wrapper: Introduced PSAWrapperCFG class.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-05 09:35:41 +01:00
Minos Galanakis
9280214a90
code_wrapper: Minor fixes
...
* imports to mbedtls_framework set to relative package imports.
* _C_TYPEDEF_DECLARATION_RE is regex compiled.
* `read_typedefs()` set to use `read_logical_lines()`
* `_write_prologue/epiloge()` modified to use f-strings
* Moved poison_write/poison_mutliwrite logic to psa_wrapper
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-05 09:35:41 +01:00
Minos Galanakis
7d93badf4f
c_wrapper_generator: Adjusted new-line logic
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-05 09:35:41 +01:00
Minos Galanakis
eefadcf929
psa_wrapper.py: Fixed executable permissions
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-05 09:35:41 +01:00
Minos Galanakis
483507a28b
c_wrapper_generator: Refactored _write_epilogue()
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-05 09:35:41 +01:00
Minos Galanakis
2ce5c0442f
c_wrapper_generator: Refactored _write_prologue()
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-05 09:35:41 +01:00
Minos Galanakis
3ab7aa40c3
c_parsing_helper: Adjusted regex and documentation.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-05 09:35:41 +01:00
Minos Galanakis
ad45da845d
code_wrappers: Updated import statements
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-05 09:35:41 +01:00
Minos Galanakis
6b2c6d0b7b
code_wrapper: Fixed script permissions
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-05 09:35:41 +01:00
Minos Galanakis
890f9362c9
Introduced psa_buffer modules
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-05 09:35:41 +01:00
Minos Galanakis
b3cc24bf34
c_parsing_helper: Adjusted FunctionInfo helper methods.
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-05 09:35:41 +01:00
Minos Galanakis
7e43fcd823
code_wrapper: Whitespace fixes
...
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com >
2024-07-05 09:35:41 +01:00