Commit Graph

32439 Commits

Author SHA1 Message Date
Elena Uziunaite c3cee628f5 Revert "Undo temporary changes in all-helpers.sh"
This reverts commit b1eee4934879253539db15e996fbb7baed9e3ffc.

Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-11-27 13:14:06 +00:00
Elena Uziunaite b20fcb55e7 Define FRAMEWORK
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-11-27 13:14:06 +00:00
Elena Uziunaite c812d5d3ef Undo temporary changes in all-helpers.sh
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-11-27 13:14:06 +00:00
Elena Uziunaite dc49da5121 Edit file paths in all-core.sh
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-11-27 13:14:06 +00:00
Elena Uziunaite 030283508b Remove unnecessary code
Because the scripts are always invoked from the project's root

Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-11-27 13:14:06 +00:00
Elena Uziunaite d74f989831 Edit file paths
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-11-27 13:14:06 +00:00
Elena Uziunaite 0d2389a8c4 Add branch detection
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-11-27 13:14:06 +00:00
Elena Uziunaite 25405012ec Create project-detection.sh
Move in_mbedtls_repo() and in_tf_psa_repo() there

Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-11-27 13:14:06 +00:00
Elena Uziunaite 372c81680d Fix typo
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-11-27 13:14:06 +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
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 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 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
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
Ronald Cron e613a0dc4c Merge pull request #76 from ronald-cron-arm/remove-psa-crypto-config
Keep going if MBEDTLS_PSA_CRYPTO_CONFIG fails
2024-11-18 13:29:35 +01:00
Manuel Pégourié-Gonnard 862fde214d Merge pull request #65 from Mbed-TLS/dev/davidhorstmann-arm/add-some-test-helpers
Move test helpers from Mbed TLS
2024-11-18 12:48:37 +01:00
Ronald Cron 1557daeec0 Keep going if MBEDTLS_PSA_CRYPTO_CONFIG setting fails
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
2024-11-18 09:05:55 +01:00
David Horstmann 45b567d99a Add missing include path in libtestdriver helper
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-15 13:55:59 +00:00
David Horstmann defe38641a Update path in all-core.sh
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-14 12:32:06 +00:00
David Horstmann a2b59be722 Always include psa/crypto.h
Previously this was not included when in 3.6 and PSA_CRYPTO_CLIENT was
defined.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-14 12:26:34 +00:00
David Horstmann 41cca8d248 Update default path for test_keys.h
This has now moved to the framework.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-14 12:26:34 +00:00
David Horstmann af90340deb Merge branch 'tmp-branch-move-files-to-framework' into dev/davidhorstmann-arm/add-some-test-helpers 2024-11-14 12:12:24 +00:00
David Horstmann dfd518f976 Move test helpers into the framework
Move everything in tests/src and tests/include except for TLS-only
things, the alt-dummy headers and the generated PSA test wrappers.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-14 12:11:06 +00:00
Manuel Pégourié-Gonnard 824a8dcde3 Merge pull request #9769 from mpg/move-all-core-dev
Move all-core and all-helpers to the framework
2024-11-14 09:51:24 +00:00
Manuel Pégourié-Gonnard 845cc54d69 Update framework pointer
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
2024-11-14 09:14:51 +01:00
Manuel Pégourié-Gonnard 3867faaaaa Merge pull request #68 from mpg/move-all-core-dev
Move all-core and all-helpers to the framework
2024-11-14 09:12:45 +01:00
Manuel Pégourié-Gonnard 30e8eb9847 Update path to all-core.sh
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
2024-11-12 11:57:46 +01:00
Manuel Pégourié-Gonnard 8f00e5e03a Update framework pointer
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
2024-11-12 11:53:34 +01:00
Manuel Pégourié-Gonnard 70a6ba728c Merge branch 'tmp-branch-move-files-to-framework' into move-all-core-dev
* tmp-branch-move-files-to-framework: (273 commits)
  Move all-{core,helpers}.sh into the framework
  Remove designated initializers from ECDH compile time initializers
  Improve and fix compile initializers for ECDH/ECP
  Fix a typo and a mistake in ECDH conext compile time initalizer
  Fix Documentation issue in mbedtls_psa_key_agreement_iop_setup()
  Fix codestyle in ECDH compile time initilaizers
  Add compile time initilaizers to ECDH and bignum structs
  Add small fixes to iop key agreement APIs
  Add a common key agreement parameter validation function across iop and normal APIs
  Refactor and improve interuptible key agreement builtin implementation
  Remove interuptible key agreement driver interface
  Fix possible error in initalizing key agreement iop struct
  Fix iop key agreement struct initilaization error on some platforms
  Improve psa iop key agreement changelog message
  Fix codestyle in psa iop key agreement driver wrapper APIs
  Improve key agreement iop basic testing
  Refactor PSA key agreement API implementation
  Refactor interuptible key agreement testing helper function
  Improve interruptible key agreement implementation
  Fix everest build issue
  ...
2024-11-12 11:37:00 +01:00
Manuel Pégourié-Gonnard 06f8f9e1b3 Move all-{core,helpers}.sh out of Mbed TLS
Signed-off-by: Manuel Pégourié-Gonnard <mpg@elzevir.fr>
2024-11-12 11:36:40 +01:00
Manuel Pégourié-Gonnard ee4ef0bed1 Move all-{core,helpers}.sh into the framework
Signed-off-by: Manuel Pégourié-Gonnard <mpg@elzevir.fr>
2024-11-12 11:35:52 +01:00
Janos Follath 241b9012a0 Merge pull request #9490 from waleed-elmelegy-arm/add-iop-key-agrmnt-api
Add PSA interruptible key agreement APIs
2024-11-11 09:29:16 +00:00
Ronald Cron 101816b41f Merge pull request #9612 from gabor-mezei-arm/9141_update_depends.py_cipher_id_domain
Update the `cipher_id` domain to use PSA macros in `depends.py`
2024-11-08 15:32:39 +00:00
Gilles Peskine 4c58e89976 Merge pull request #9613 from gilles-peskine-arm/remove-rsa-psk-key-exchange
Remove RSA-PSK key exchange
2024-11-07 15:09:05 +00:00
Waleed Elmelegy 947afa05d6 Remove designated initializers from ECDH compile time initializers
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-07 15:06:28 +00:00
Manuel Pégourié-Gonnard e248de54bf Merge pull request #9720 from mpg/all.sh-tf-psa-crypto-dev
All.sh add support for tf-psa-crypto components
2024-11-07 08:49:44 +00:00
Paul Elliott fc140d0c6b Merge pull request #9672 from gilles-peskine-arm/coverity-20241004
Fix edge cases of mbedtls_psa_raw_to_der and mbedtls_psa_der_to_raw
2024-11-06 19:03:13 +00:00
Gilles Peskine b48d5263c5 Merge pull request #9758 from gilles-peskine-arm/move-test_suite_psa_crypto_ecp
Move new test suite to the tf-psa-crypto directory
2024-11-06 17:56:30 +00:00
Waleed Elmelegy 7817da0833 Improve and fix compile initializers for ECDH/ECP
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-06 16:03:49 +00:00
Waleed Elmelegy a4d0fd1143 Fix a typo and a mistake in ECDH conext compile time initalizer
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-06 16:03:49 +00:00
Waleed Elmelegy 97041ed399 Fix Documentation issue in mbedtls_psa_key_agreement_iop_setup()
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-06 16:03:49 +00:00
Waleed Elmelegy e980fbe291 Fix codestyle in ECDH compile time initilaizers
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-06 16:03:49 +00:00
Waleed Elmelegy f840b3a2c0 Add compile time initilaizers to ECDH and bignum structs
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-06 16:03:49 +00:00
Waleed Elmelegy 280e22518e Add small fixes to iop key agreement APIs
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-06 16:03:49 +00:00
Waleed Elmelegy cd721b9870 Add a common key agreement parameter validation function across iop and normal APIs
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-06 16:03:49 +00:00
Waleed Elmelegy 18df1c560a Refactor and improve interuptible key agreement builtin implementation
- rename psa_driver_wrapper_key_agreement_xxx to
  psa_driver_wrapper_key_agreement_iop_xxx.
- reorganise the paraemters of psa_driver_wrapper_key_agreement_setup

Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-06 16:03:49 +00:00
Waleed Elmelegy 86e518b7bd Remove interuptible key agreement driver interface
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-06 16:03:49 +00:00
Waleed Elmelegy 842213811d Fix possible error in initalizing key agreement iop struct
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-06 16:03:49 +00:00
Waleed Elmelegy a98aeaff25 Fix iop key agreement struct initilaization error on some platforms
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-06 16:03:49 +00:00
Waleed Elmelegy fa4eb35418 Improve psa iop key agreement changelog message
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-06 16:03:49 +00:00