Commit Graph

30 Commits (a6b78c6429993c7bb06152e37125050f162b3b6d)

Author SHA1 Message Date
Jaeden Amero 689274b6b4 crypto: Update the service for Mbed Crypto 3.x
Update Mbed OS's PSA Crypto service to work with Mbed Crypto 3.x.

- psa_asymmetric_verify() is now called psa_verify_hash().
- psa_asymmetric_sign() is now called psa_sign_hash().

Compatibilty wrappers are provided via crypto_compat.h for source-level
backwards compatibility.
2019-12-20 16:01:17 +00:00
Jaeden Amero 3d1b8363db Use PSA Crypto API 1.0b3
The PSA Crypto API has moved on from 1.0b2 to 1.0b3, bringing along with
it some breaking changes. Update Mbed OS to use the 1.0b3 API.
2019-09-02 17:10:59 +01:00
int_szyk ae6f8be146 Newline at the end of files 2019-08-01 08:44:58 +02:00
int_szyk 8b68a1ea58 Updated testcases 2019-07-31 10:46:38 +02:00
Devaraj Ranganna 7ead3fedb8 Include psa/crypto.h instead of mbedtls/config.h.
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2019-07-08 16:28:58 +01:00
Devaraj Ranganna 6e590cd3e7 Include mbedtls/config.h before evaluating MBEDTLS_PSA_CRYPTO_C
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2019-07-04 16:44:19 +03:00
Alexander Zilberkant 117e3e82b6 Update PSA includes to autogenerated files 2019-04-30 14:41:09 +03:00
Alexander Zilberkant ab01bea46d Delete autogenerated files 2019-04-30 14:10:23 +03:00
itayzafrir 75e4210633 Fix typos 2019-03-26 15:27:22 +02:00
itayzafrir 2dfafe6299 Crypto acl tests destroy keys 2019-03-19 17:57:24 +02:00
itayzafrir f1722cb8dc Add crypto acl test - key agreement 2019-03-19 17:47:48 +02:00
itayzafrir c8eb51d576 Add crypto acl test - key derivation 2019-03-19 13:35:24 +02:00
Oren Cohen fc97a75632 Remove #ifndef NO_GREENTEA from tests 2019-03-14 11:16:44 +02:00
Martin Kojtal fa65546aa2
Merge pull request #9913 from kfnta/fix_acl_test
Fix bug in crypto_acl test
2019-03-03 19:30:43 +01:00
Oren Cohen 4fe5a41734 Fix bug in crypto_acl test 2019-03-03 14:41:27 +02:00
Oren Cohen cfb60ec955 Fixes
* Add #include <stddef.h> to psa/client.h
* Add Attestation service to TFM
* Update FUTURE_SEQUANA_PSA secure binaries
* Remove MBED_SPM from K64F
* Refactor psa_manifest/sid.h
* Increase stackl size in spm-client tests
* Add handling of errors from psa_get in partitions
2019-03-03 13:30:58 +02:00
Michael Schwarcz 3c0c5759bf Regenerate mbed-spm files 2019-03-01 09:40:45 +02:00
itayzafrir b8bdaf9e9f Fix acl test asymmetric encrypt decrypt 2019-02-28 10:29:53 +02:00
itayzafrir 31d202b3f6 Change error code handling of calls to psa_call 2019-02-28 10:29:52 +02:00
itayzafrir 2918f74883 Free dynamic memory in test partition 2019-02-27 16:28:36 +02:00
itayzafrir 2227e33e5a Add acl test - use other partitions' key - asymmetric encrypt decrypt 2019-02-27 16:28:36 +02:00
itayzafrir 5a7ed318ae Add acl test - use other partitions' key - asymmetric sign verify 2019-02-27 16:28:36 +02:00
itayzafrir db90606a34 Add acl test - use other partitions' key - aead 2019-02-27 16:28:36 +02:00
itayzafrir b8079c3d09 Add acl test - use other partitions' key - cipher 2019-02-27 16:28:36 +02:00
itayzafrir d1e61a0df4 Add acl test - use other partitions' key - mac 2019-02-27 16:28:35 +02:00
itayzafrir 200930d752 Refactor test partition helper function to create and generate a key 2019-02-27 16:28:35 +02:00
itayzafrir 2c1f0b37f2 Add acl test - use other partitions' key - manage key 2019-02-27 16:28:35 +02:00
itayzafrir 8c21f10696 Add acl test - create key same id different partitions 2019-02-27 16:28:35 +02:00
itayzafrir 9adda5b88e Add acl test - open other partitions' key 2019-02-27 16:28:35 +02:00
itayzafrir 2146e74c84 Prepare for crypto access control tests
- Add a secure side test partition
- Add a proxy to communicate with the test partition
- Add main test file
2019-02-27 16:28:35 +02:00