Cruz Monrreal
9f6ee7db66
Merge pull request #9754 from netanelgonen/SPM_return_value
...
Fix SPM returning the wrong value
2019-02-19 15:29:48 -06:00
Cruz Monrreal
4c04771c5d
Merge pull request #9653 from kfnta/tfm_src_integ
...
TF-M sources integration to Mbed-OS
2019-02-19 15:28:44 -06:00
Michael Schwarcz
cf3fd858ad
Align existing partitions to work with TF-M
...
- ITS
- Crypto
- Platform
2019-02-19 15:19:01 +02:00
Netanel Gonen
1a87f24955
support in more types then just RSA_KEYPAIR
...
if the type is not supported the psa_crypto will return the error code
for unsupported
2019-02-19 14:47:11 +02:00
Netanel Gonen
d0dae03d01
Fix SPM returning the wrong value
2019-02-19 12:56:41 +02:00
Cruz Monrreal
c07410d78c
Merge pull request #9628 from kfnta/bare-metal-updates
...
Bare metal mbed_lib updates
2019-02-14 09:13:34 -06:00
Oren Cohen
b5e8492458
Add PSA mbed-lib.json
2019-02-13 20:36:01 +02:00
Oren Cohen
45c44eb07c
Fix dependencies of platform partition
2019-02-13 17:10:12 +02:00
itayzafrir
b7b85516cb
crypto service: Add documentation
2019-01-31 17:17:58 +02:00
Oren Cohen
ea9f104463
Fix Licenses
2019-01-31 17:17:58 +02:00
Oren Cohen
5d448d758c
Astyle
2019-01-31 17:17:57 +02:00
Oren Cohen
20478ba654
Last update
2019-01-31 17:17:57 +02:00
Oren Cohen
b0cbe815ec
Regenerate SPM data
2019-01-31 17:17:57 +02:00
Oren Cohen
98707d047b
Fix Typo
2019-01-31 17:17:57 +02:00
Alexander Zilberkant
95f8dbce7b
Add new platform partition
2019-01-31 17:17:56 +02:00
Oren Cohen
cae1ebf33d
Add new ITS reset SID
...
Only accessible from SPE
2019-01-31 17:17:55 +02:00
Oren Cohen
156d3b785b
Replace psa_prot_internal_storage.h with psa/internal_trusted_storage.h
2019-01-31 17:17:54 +02:00
Oren Cohen
642fce5022
ITS 1.0
2019-01-31 17:17:54 +02:00
Oren Cohen
34895a05ad
CR fixes
2019-01-31 17:17:54 +02:00
Oren Cohen
8841ba69f8
Align to new spec changes and prep for TFM SPM
...
# Conflicts:
# components/TARGET_PSA/services/crypto/COMPONENT_PSA_SRV_IPC/psa_crypto_spm.c
# components/TARGET_PSA/services/crypto/COMPONENT_SPE/psa_crypto_partition.c
2019-01-31 17:17:53 +02:00
Oren Cohen
99b8eafc35
Align with PSA spec
...
* psa_error_t -> psa_status_t
* psa_invec_t -> psa_invec
* psa_outvec_t -> psa_outvec
* Use new PSA headers
2019-01-31 17:16:41 +02:00
itayzafrir
861fb0cbf0
crypto service: Implement function psa_hash_clone over IPC
2019-01-29 11:43:27 +02:00
itayzafrir
81a4ff6425
crypto service: Implement IPC according to Mbed Crypto 1.0.0d1 API
...
1. Removed obsolete crypto APIs from IPC implementation.
2. Updated existing crypto APIs in IPC implementation.
3. Added new crypto APIs to IPC implemntation (except for psa_hash_clone).
2019-01-29 11:43:27 +02:00
Martin Kojtal
8301325481
Merge pull request #8935 from kfnta/crypto_partition_fix
...
Fix PSA crypto partition and tests
2018-12-06 11:34:45 +01:00
Cruz Monrreal
0b1b8e0cc3
Merge pull request #8908 from kfnta/alzix_fix_its
...
Fix PSA internal storage configuration
2018-12-04 11:51:04 -06:00
Oren Cohen
fa5c96c857
Fix includes
2018-12-04 18:37:47 +02:00
Oren Cohen
c3bd6f12d2
Fix PSA crypto partiotion and tests
...
* Styling
* Correct error codes on failing connection
* Add panics where needed
* correct skip defines
* Fix psa_spm_init_refence_counter bug
2018-12-04 17:07:28 +02:00
Alexander Zilberkant
44ec2aa49a
Better PID handling
...
PSA PID is of int32_t type - use native type during the whole flow for better readability.
Convert PID to unsigned for calculations only.
Add dedicated inline function for logic shift right.
2018-12-04 14:08:14 +02:00
Alexander Zilberkant
9f7752b1f9
Replace PID and UID order in file name
...
PID should come first to create - to prevent timing attacks. Each partition can only request its own files. Thus starting lookup from the PID makes more sence.
2018-12-04 14:08:14 +02:00
Alexander Zilberkant
e7df8583d6
Optimize error handling
2018-12-04 14:08:14 +02:00
Alexander Zilberkant
9d59ed8c60
Fix PSA internal storage misconfiguration
...
Use internal TDBStore instance instead of default one
2018-12-04 14:08:14 +02:00
Jaeden Amero
6de7c184d7
psa: storage: Fix PSA_PS_ERROR_OFFSET typo
...
Correct typo of PSA_PS_ERROR_OFFSET to PSA_ITS_ERROR_OFFSET.
2018-11-30 15:36:22 +00:00
Oren Cohen
01301387f8
Run SPM code generator
2018-11-28 14:40:01 +02:00
mohammad1603
6e862cf112
Fix psa_crypto_generator_init implementation to use the init define macro
2018-11-27 11:56:59 +02:00
mohammad1603
88f4f48fac
Astyle fixes for the source
...
Used running: astyle -n --options=.astylerc
2018-11-27 11:56:57 +02:00
Mohammad AboMokh
5c2cf07780
Revert file permission change
2018-11-27 11:56:56 +02:00
Mohammad AboMokh
1d4b6a4e89
Return invalid argument error in case of zero or negative handle for generators
2018-11-27 11:56:55 +02:00
Mohammad AboMokh
79d957ac7b
Change PSA_MAX_NONCE_SIZE to PSA_AEAD_MAX_NONCE_SIZE
2018-11-27 11:56:54 +02:00
Mohammad AboMokh
ba47b450aa
Remove unnecessary define
2018-11-27 11:56:54 +02:00
Mohammad AboMokh
7776fea903
Remove unneeded includes
2018-11-27 11:56:53 +02:00
Netanel Gonen
352bac3b26
Crypto SPM - fix - PART1
...
Fail fast on invalid handles before calling to SPM
2018-11-27 11:56:52 +02:00
Netanel Gonen
bab6116f31
compilation fix
2018-11-27 11:56:51 +02:00
Mohammad AboMokh
a4c498e02a
Integrate psa_key_agreement() with SPM code
2018-11-27 11:56:50 +02:00
Netanel Gonen
59c3c9fff7
crypto init with multiple client guard & tests
2018-11-27 11:56:48 +02:00
Netanel Gonen
7f49fd2b09
Fix memory leak if user does not calls abort. call abort when connection is closed
2018-11-27 11:56:46 +02:00
Netanel Gonen
58f92c3266
remove execute permissions from file
2018-11-27 11:56:45 +02:00
Mohammad AboMokh
54cd8bf51f
Change behavior realted to MBEDTLS_ENTROPY_NV_SEED and MBEDTLS_PSA_HAS_ITS_IO flags
...
* mbedtls_psa_inject_entropy() MUST be always available for client side.
* Partition will return PSA_ERROR_NOT_SUPPPORTED in case where MBEDTLS_ENTROPY_NV_SEED or MBEDTLS_PSA_HAS_ITS_IO flags are not defined
2018-11-27 11:56:40 +02:00
Mohammad AboMokh
fb88cb4cb5
Add missing guards
2018-11-27 11:56:38 +02:00
Mohammad AboMokh
587fdbb447
Remove crypto init that was not called by the user
2018-11-27 11:56:32 +02:00
Mohammad AboMokh
bd47a8c2b8
Add entropy inject to spm
2018-11-27 11:56:30 +02:00