Waleed Elmelegy
5bcd3cc217
Add internal struct for iop export public-key context
...
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
2024-11-27 16:06:24 +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
2e37806ace
Fix paths
...
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
Elena Uziunaite
23a6432af1
Add project and branch detection in shell
...
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-11-27 13:15:01 +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
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
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
885ce72ca6
Remove duplicate demo_common.sh in tf-psa-crypto
...
This commit removes the duplicate demo_common.sh file in tf-psa-crypto
and instead use the demo_common.sh file in mbedtls/programs.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-11-20 16:21:35 +00:00
Harry Ramsey
ff57cc56ba
Move program gitignore to tf-psa-crypto/programs
...
This commit moves programs from tf-psa-crypto/.gitignore to
tf-psa-crypto/programs/.gitignore.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-11-20 16:21:35 +00:00
Harry Ramsey
af0594198b
Revert program CC output in Makefile
...
This commit reverts tf-psa-crypto program CC output informing the user
what file is being compiled.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-11-20 16:21:35 +00:00
Harry Ramsey
20d3cf2300
Update programs/Makefile path
...
This commit updates a recipe path in programs/Makefile.
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
8ee1b5d098
Update gitignore
...
Update gitignore in programs and tf-psa-crypto following the move of
multiple files.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-11-20 16:21:35 +00:00
Harry Ramsey
cefc67242b
Fix make_generated_files.bat
...
This commit fixes make_generated_files.bat as it requires the user to be
inside the tf-psa-directory to invoke generate_psa_constants.py.
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
e9e316e8c5
Update path in programs/psa/CMakeList.txt
...
This commit updates the path to the generate_psa_constants.py script in
programs/psa/CMakeList.txt file.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-11-20 16:20:52 +00:00
Harry Ramsey
fb4824b496
Fix incorrect paths to generate_psa_constants.py
...
This commit fixes incorrect paths to generate_psa_constants.py after
being moves to tf-psa-crypto.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-11-20 16:20:52 +00:00
Harry Ramsey
91c0d4685f
Use static paths in makefile for programs
...
This commit uses static paths in the makefile to create programs since
the script generate_visualc_files.pl cannot substitute variable paths.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-11-20 16:20:52 +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
e1d6f74b92
Move generate_psa_constants.py to tf-psa-crypto
...
This commit moves generate_psa_constants.py to tf-psa-crypto and updates
the paths inside the script necessary for that move.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-11-20 16:20:52 +00:00
Harry Ramsey
fae7411429
Refactor programs/Makefile
...
This commit refactors the Makefile in the programs directory to remove
unused variables and consistent naming schemes.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-11-20 16:20:52 +00:00
Harry Ramsey
c94cb70d58
Update paths in .sln file
...
This commit updates the paths in generate_visualc_files.pl to update the
generated .sln file with the new paths for psa programs.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-11-20 16:20:52 +00:00
Harry Ramsey
d66fb8475c
Adjust psa program paths in CMakeLists
...
This commit adjusts the paths of programs/psa to tf-psa-crypto/programs
in CMakeLists.txt.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-11-20 16:20:52 +00:00
Harry Ramsey
e1d70a00d6
Adjust psa program paths in Makefile
...
This commit adjusts the paths of programs/psa to tf-psa-crypto/programs.
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
Harry Ramsey
ced26059e3
Move psa programs to tf-psa-crypto directory
...
This commit moves psa programs from the programs/psa directory to
tf-psa-crypto/programs/psa directory.
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-11-20 16:12:43 +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
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
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
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