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
Danny Shavit
e72d910754
Add a weak implementation for trng_get_bytes()
2018-11-27 11:56:49 +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
Netanel Gonen
4816266205
add comment to explain why (-1 * rc) is returned
2018-11-27 11:56:44 +02:00
Netanel Gonen
73cb013ac6
skip inject entropy test if they not supported
2018-11-27 11:56:43 +02:00
Netanel Gonen
ae0fa609a9
remove psa_its_get_info from seed read function
2018-11-27 11:56:42 +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
73ebe1a247
Fix inject entropy tests
...
* Call greentea_case_teardown_handler() and greentea_case_setup_handler() instead of return STATUS_CONTINUE
* Introduce and use new macro MBEDTLS_PSA_INJECT_ENTROPY_MIN_SIZE
2018-11-27 11:56:37 +02:00
Mohammad AboMokh
0fde6af120
change MBEDTLS_RANDOM_SEED_ITS_UID define to be PSA_CRYPTO_ITS_RANDOM_SEED_UID
2018-11-27 11:56:36 +02:00
Mohammad AboMokh
72037747b1
Update auto generated SPM files
2018-11-27 11:56:35 +02:00
Mohammad AboMokh
1325084b1a
Add tests to PSA entropy injection
2018-11-27 11:56:33 +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
7b2c924ac7
Adding defualt behaviour for platforms without TRNG.
...
If setting the MBEDTLS_PLATFORM_NV_SEED_ALT and MBEDTLS_ENTROPY_NV_SEED flags and not
setting MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO and MBEDTLS_PLATFORM_NV_SEED_READ_MACRO flags
mbed-os will add an entropy source to the relevent partition - SPE in case of daul core or
in case of single core V7 to the main partition.
The defualt behaviour will be to read or write the data from the ITS.
2018-11-27 11:56:31 +02:00
Mohammad AboMokh
bd47a8c2b8
Add entropy inject to spm
2018-11-27 11:56:30 +02:00
Oren Cohen
f4581faab0
Create a new partition for the crypto service
...
The following files initially were taken
from https://github.com/ARMmbed/psa-crypto-spm/releases/tag/spm-crypto-5.11
* crypto_platform_spe.h
* crypto_struct.h
* crypto_struct_ipc.h
* psa_crypto_spm.c
* crypto_spe.h
* crypto_partition_psa.json
The rest of the files were autimatically generated
by tools/spm/generate_psa_partition.py
2018-11-27 11:56:29 +02:00
Oren Cohen
2b3822e6cd
Fix targets.json
2018-11-27 09:18:10 +02:00
Alexander Zilberkant
ed8505ae64
Update components/TARGET_PSA/spm/psa_defs.h
...
Co-Authored-By: orenc17 <oren.cohen@arm.com>
2018-11-27 09:16:48 +02:00
Amanda Butler
34bcf6b1f0
Edit spm_api.h
...
Edit file, mostly for minor grammar and style changes.
2018-11-27 09:16:48 +02:00
Amanda Butler
ba6fdcf494
Edit psa_defs.h
...
Make minor edits, mostly for consistent abbreviations.
2018-11-27 09:16:48 +02:00
Amanda Butler
b87ab2511b
Edit spm_server.h
...
Make minor edits, mostly for consistent capitalization and style.
2018-11-27 09:16:47 +02:00
Amanda Butler
25239a4a9d
Edit spm_client.h
...
Make minor copy edits, mostly for punctuation and style.
2018-11-27 09:16:47 +02:00
Oren Cohen
aea9713c89
Doxygen fixes in tests
2018-11-27 09:16:47 +02:00
Oren Cohen
5455a2da59
Astyle fixes
2018-11-27 09:16:46 +02:00
Alexander Zilberkant
8501e79e93
spm_init.h add function docs
2018-11-27 09:16:46 +02:00
Alexander Zilberkant
628ef9b28d
spm_internal.h - add missing function docs
2018-11-27 09:16:46 +02:00
Oren Cohen
773ac8dd95
CR fixes
2018-11-27 09:16:45 +02:00
Alexander Zilberkant
2b9f94a0ad
Remove dead code
2018-11-27 09:16:45 +02:00
Alexander Zilberkant
1a33ae527d
Handle manager documentation fix
...
Move function description to header files
Note: it is not in Doxygen format since it is an internal module and
Doxygen should not be generated for it
2018-11-27 09:16:44 +02:00
Oren Cohen
f771a5aff3
Fix FVP_MPS2 & ARM_CM3DS_MPS2 components definition
2018-11-27 09:16:43 +02:00
Oren Cohen
1e27eb1c77
Remove SPM negative tests
2018-11-27 09:16:43 +02:00
Oren Cohen
6cd4f7789f
Add Version to SPM templates and generator
2018-11-27 09:16:43 +02:00
Alexander Zilberkant
4a391d3297
Remove internal RTX includes
2018-11-27 09:16:42 +02:00
Alexander Zilberkant
ecd556b354
Generate better magic numbers
2018-11-27 09:16:41 +02:00
Oren Cohen
53be3cccfc
Fix the SPM HAL test
2018-11-27 09:16:41 +02:00
Oren Cohen
940645077e
Coverity bug fixes
2018-11-27 09:16:41 +02:00
Alexander Zilberkant
9cc017fd48
Normalize license headers
...
- add SPDX license identifier
- add missing license headers
- update year in license headers
2018-11-27 09:16:40 +02:00
Alexander Zilberkant
aea01a86f6
astyle changes
2018-11-27 09:16:38 +02:00
Jimmy Brisson
c7d3523a4e
Include `deliver_into` in Config mock
2018-11-27 09:16:36 +02:00
Oren Cohen
dd73fa689c
PSA SPM
...
* Intorduce PSA-SPM to mbed-os
* Add SPM tests (for PSA targets)
* Add PSA PRoT internal storage Secure implementation
* Integrate SPM into the boot proccess
* PSA manifest data generator
* Introduce PSA targets skeleton to mbed-os
* Add artifact delivery to the tools
2018-11-27 09:16:35 +02:00
Cruz Monrreal
1c1638342d
Merge pull request #8708 from SeeedJP/wio_bg96_hal
...
[Wio BG96] Adding platform HAL
2018-11-26 11:22:29 -06:00
Martin Kojtal
3c0d6f0b0c
Merge pull request #8790 from AriParkkila/cell-urc-cb
...
Cellular: Fix ATHandler URC processing
2018-11-26 16:36:54 +01:00
Martin Kojtal
fdca1e3578
Merge pull request #8730 from kfnta/its_kvstore_single_core
...
Add a new PSA Internal Trusted Storage APIs
2018-11-26 11:54:08 +01:00
Martin Kojtal
0cc134586c
Merge pull request #8851 from KariHaapalehto/disconnect_error_code_change
...
Change error code from NSAPI_ERROR_PARAMETER to NSAPI_ERROR_NO_CONNEC…
2018-11-26 11:03:51 +01:00