32557 Commits

Author SHA1 Message Date
Elena Uziunaite 16ec14763b Remove scripts_path
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-11-27 16:16:44 +00:00
Elena Uziunaite 8e02a0295e Make the script work in both branches
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-11-27 13:31:23 +00:00
Elena Uziunaite 3f110b9b07 Merge branch 'tmp-branch-move-files-to-framework' into issue-72 2024-11-27 13:31:08 +00:00
Elena Uziunaite 34f69513fc Move files into the framework
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-11-27 13:30:57 +00:00
Janos Follath 49e6115443 Merge pull request #9651 from waleed-elmelegy-arm/add-iop-key-gen-complete
Add PSA interruptible key generation complete API
2024-11-26 18:34:40 +00:00
Waleed Elmelegy 1630603ef1 Change internal iop generate key error variable to int
Change internal iop generate key error variable to int
instead of psa_status_t since the error variable get
passed to mbedtls_to_psa_error() when being returned

Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-25 16:50:06 +00:00
Manuel Pégourié-Gonnard f27c10596b Merge pull request #9780 from emmanuel-ferdman/development
Update `crypto_se_driver.h` reference
2024-11-25 16:06:10 +00:00
David Horstmann 3aefa5b705 Merge pull request #7977 from ivq/update_gcm_doc
Fix doc on GCM API
2024-11-21 17:35:52 +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
Waleed Elmelegy c57f6fcd05 Fix code stayle in iop export public-key function
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-21 16:56:52 +00:00
Ronald Cron 42a5c97d75 Add change log
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
2024-11-21 15:52:06 +01: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
Waleed Elmelegy f5a82fd0a2 Add ecp prefix to internal iop generate key function names
Add ecp prefix to internal iop generate key function names
to emphasize that the functions are doing eliptic curves
keys only and not any other types.

Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-21 14:31:55 +00:00
Waleed Elmelegy 2266197e9c Move internal iop generate key function headers to psa_crypto_ecp.h
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-21 14:18:16 +00: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
Manuel Pégourié-Gonnard e2a6d284b3 Merge pull request #9794 from davidhorstmann-arm/test-helpers-update-framework-submodule
Update framework submodule to point to `main`
2024-11-21 12:54:02 +00:00
Ronald Cron f1119c2e80 Merge pull request #79 from ronald-cron-arm/remove-psa-crypto-config
Remove MBEDTLS_PSA_CRYPTO_CONFIG-2
2024-11-21 13:53:45 +01:00
Waleed Elmelegy 174a4e9960 Change iop export public-key initlization example
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-21 10:54:54 +00:00
David Horstmann 3cad328e76 Update framework submodule to point to main
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-21 10:48:47 +00:00
Waleed Elmelegy a898127144 Remove PSA_ERROR_NOT_SUPPORTED as a return value to iop abort APIs
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-20 15:33:52 +00:00
Waleed Elmelegy bf1af30ec9 Correct typos in iop export public-key headers
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-20 15:32:37 +00:00
Waleed Elmelegy 39d54e1fb1 Prevent a warning in case PSA_VENDOR_ECC_MAX_CURVE_BITS is set to 0
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-20 15:08:52 +00:00
Waleed Elmelegy 44e0f75ca3 Use PSA Macros instead of legacy ones in psa_generate_key_iop_complete()
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-20 12:31:32 +00:00
Waleed Elmelegy 08e28e6573 Check error codes on called functions in mbedtls_psa_generate_key_iop_complete
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-20 12:29:39 +00:00
Ronald Cron 50d074d09d Move *config_test_driver* headers back to mbedtls
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
2024-11-20 12:37:26 +01:00
Manuel Pégourié-Gonnard 905395eefd Merge pull request #9756 from davidhorstmann-arm/move-some-test-helpers-to-framework
Move some test helpers to the framework
2024-11-20 09:55:42 +00:00
Manuel Pégourié-Gonnard 69d19dc84b Merge pull request #78 from Mbed-TLS/dev/davidhorstmann-arm/port-psa-exercise-key-changes
Port `psa_exercise_key` changes added mid-framework-move
2024-11-20 10:55:30 +01: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 ccf8c42b1a Update framework submodule
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-19 17:14:13 +00:00
David Horstmann 56ecabe532 Guard new changes with MBEDTLS_VERSION_MAJOR >= 4
Since these changes reference psa_key_agreement() which doesn't exist in
3.6, guard them with MBEDTLS_VERSION_MAJOR >= 4.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-19 17:06:42 +00:00
Waleed Elmelegy db0c4a4b2c Remove MBEDTLS_ECP_MAX_MPI_BYTES macro
Remove MBEDTLS_ECP_MAX_MPI_BYTES macro as
it's not needed anymore.It was added when
memcpy was being used but now that
mbedtls_mpi_write_binary() is being used
it can handle copying a large buffer filled
with leading zeros into a smaller buffer.

Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-18 17:38:59 +00:00
David Horstmann 1df752b353 Update framework to add ported test helper changes
Update the framework pointer to reference new changes to
tests/src/psa_exercise.key.c and tests/include/test/psa_exercise_key.h
that have been ported to the framework from the main repo.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 16:32:33 +00:00
David Horstmann de5f965ebe Port psa_exercise_key changes
These changes to psa_exercise_key were added while the files were being
moved to the framework. Port them to the framework now.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:52:42 +00:00
David Horstmann 0223bc6dcc Update paths in TF-PSA-Crypto CMakeLists.txt
Some test build commands were moved to the CMakeLists.txt in the
tf-psa-crypto directory. Apply framework-related changes to this moved
section.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:45 +00:00
David Horstmann 7bf3489d64 Update framework submodule
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:45 +00:00
David Horstmann 0b2cd56718 Update framework submodule
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:45 +00:00
David Horstmann c3cea3040d Update framework submodule
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:45 +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 3281e16c35 Reverse accidental docs PSA test wrappers path
These were accidentally documented incorrectly in the PSA shared memory
documentation due to a global find and replace.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:45 +00:00
David Horstmann a244687b9d Add missing include path to visual C script
We need to include from both tests/include and framework/tests/include.
Update scripts/generate_visualc_files.pl to re-add tests/include, which
had previously been replaced with framework/tests/include.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:44 +00:00
David Horstmann 36c819ccc9 Update test_keys.h path on Windows
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-18 15:50:44 +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 08953f7135 Add extra paths to generate_visualc_files.pl
Both the main repository and framework test helper paths are needed, so
generate these in the script.

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