Steve Cartmell
4f7dcf4d34
refactor(pan-cordio): Make nordic softdevice the default link layer
2018-11-28 10:26:14 +00:00
Steve Cartmell
12fdab312e
feat(pan-cordio): Add nordic softdevice sources back into repository
2018-11-28 10:26:14 +00:00
Donatien Garnier
c68c150bf8
Fix buffer size for NRF Cordio HCI driver
2018-11-28 10:26:13 +00:00
Steve Cartmell
93bf68df0b
fix(pan-cordio): Remove erroneous files added after rebasing
2018-11-28 10:26:13 +00:00
Steve Cartmell
1e1486ed18
fix(pan-cordio): Replace the compiled uECC library with the sources
2018-11-28 10:19:08 +00:00
Donatien Garnier
01620b9ba2
Use uECC C99 implementation
2018-11-28 10:19:08 +00:00
Steve Cartmell
0f4ded19ac
feat(pan-cordio): Replace NRF51 softdevice BLE stack with cordio
2018-11-28 10:19:08 +00:00
Steve Cartmell
c3e611399f
fix(pan-cordio): Fix incorrectly adding macros to NRF52_DK target
2018-11-28 10:19:08 +00:00
Steve Cartmell
f583596fea
refactor(pan-cordio): Replace the uECC source with a precompiled library
2018-11-28 10:19:08 +00:00
Steve Cartmell
93267699b8
fix(pan-nordic): Fix memory allocation sizes to resolve NRF52832 issues
2018-11-28 10:19:08 +00:00
Steve Cartmell
815d0d5efc
feat(pan-cordio): Add cordio-ll libraries and NORDIC implementation
2018-11-28 10:19:08 +00:00
Steve Cartmell
ca2efcdd11
fix(pan-cordio): Reset timer after updating to reduce chance of overflow
2018-11-28 10:19:08 +00:00
Steve Cartmell
e5aa84308f
refactor(pan-cordio): Use Timer class instead of raw ticker for timing
2018-11-28 10:19:08 +00:00
Steve Cartmell
299ae1d9c6
fix(pan-cordio): Override WSF handler size in a platform specific manner
2018-11-28 10:19:08 +00:00
Steve Cartmell
5782e93a19
fix(pan-cordio): Wrap call to wsfOsReadyToSleep in a critical section
...
The function wsfOsReadyToSleep should only be called when interrupts are
disabled. Entering a critical section before calling the function fixes
any potential issues.
2018-11-28 10:19:08 +00:00
Steve Cartmell
f60c2c9aa8
fix(pan-cordio): Increase the maximum number of supported WSF handlers
...
NRF52480 fails to complete BLE initialisation due to attempting to set
more event handlers than are supported by the WSF library.
Increasing the number of handlers fixes this issue.
2018-11-28 10:19:08 +00:00
Steve Cartmell
065bad6fa6
fix(pan-cordio): Move stack BLE stack setup to later in initialisation
2018-11-28 10:19:08 +00:00
Martin Kojtal
52822cb8af
Merge pull request #8871 from c1728p9/mpu
...
MPU API (Reopened)
2018-11-28 10:28:32 +01:00
Martin Kojtal
e62abd8aee
Merge pull request #8804 from mohammad1603/inject_entropy_spm
...
PSA Crypto SPM
2018-11-28 09:40:31 +01:00
Martin Kojtal
4758ddd2c6
Merge pull request #8738 from pan-/ble-extended-advertising
...
Ble extended advertising
2018-11-28 09:39:13 +01:00
Martin Kojtal
e69aa15aea
Merge pull request #8744 from kfnta/psa_spm_base
...
PSA Secure partition manager and services
2018-11-27 15:26:38 +01:00
Netanel Gonen
5f36447eb6
do not run crypto init SPM test if not SPM target
2018-11-27 15:29:14 +02:00
Netanel Gonen
f1c5aeb70e
add MBEDTLS_PSA_CRYPTO_C defined to K64F PSA target
2018-11-27 14:02:55 +02:00
Martin Kojtal
86915d9a7e
Merge pull request #8704 from RonEld/cryptocell_ccm_alt_fixes
...
Fix issues in Cryptocell 310 ccm_alt discovered by On Target Testing
2018-11-27 11:44:33 +01:00
Martin Kojtal
a2368967c0
add MPU support for 3 targets
...
They should support MPU as they have all defined. Otherwise it fails to build
2018-11-27 10:24:53 +00:00
Mohammad AboMokh
819594477c
Refactor trng_get_bytes()
2018-11-27 12:15:52 +02:00
Mohammad AboMokh
b9ea334f1f
Change __WEAK to MBED_WEAK
2018-11-27 12:15:26 +02:00
Alexander Zilberkant
daeb19d167
Fix entropy_inject test compilation
...
Include to crypto.h file will fail on targets without TARGET_PSA support
Moving prerequisites check before include.
2018-11-27 11:57:01 +02:00
Alexander Zilberkant
abf1ccc722
Disable crypto_init tests when Mbed Crypto is OFF
2018-11-27 11:57:00 +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
4cef73d2eb
Update output_length in trng_get_bytes() provided by psa.
2018-11-27 11:56:58 +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
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