Ron Eldor
5817d71ad8
Change mbedtls_platform_context parameter to NULL
...
Change the parameter being sent to `mbedtls_platform_setup()` and
`mbedtls_platfrm_teardown()` to NULL, as it is now being unused
in Mbed OS.
2018-09-03 08:38:57 +03:00
paul-szczepanek-arm
db3d124516
moved the utility function into the pal since it's only useful below pal
2018-08-29 20:25:56 +01:00
paul-szczepanek-arm
baaebb47dc
fix typo in preferred
2018-08-29 20:21:04 +01:00
paul-szczepanek-arm
e0ca4a093f
update cordio pal phy to new 5.0 stack
2018-08-29 20:21:04 +01:00
paul-szczepanek-arm
8090e7acd8
phy API implementation for cordio
...
phy set types added, nordic implementation updated
2018-08-29 20:21:04 +01:00
Paul Szczepanek
d5c675e300
Merge pull request #6 from paul-szczepanek-arm/feature-support
...
support for controller features
2018-08-29 20:15:58 +01:00
Vincent Coubard
954f004d16
Nordic BLE: Implement PHY APIs for NRF52.
2018-08-29 20:15:58 +01:00
paul-szczepanek-arm
657fc45a3c
updated porting guide
2018-08-24 11:30:04 +01:00
paul-szczepanek-arm
f36e58b039
update readme
2018-08-24 11:14:03 +01:00
paul-szczepanek-arm
1d2ab42d27
replace libraries with sources
2018-08-24 11:14:03 +01:00
Martin Kojtal
70814d6185
Merge pull request #7417 from pan-/improve-cordio-hci-doc
...
Cordio Documentation: Explain how to tests and what tools are available.
2018-08-24 09:52:21 +02:00
Melinda Weed
4a9570b252
function signature line
2018-08-16 14:46:07 +03:00
Melinda Weed
c1e154b1cc
removing \
2018-08-14 16:26:30 +03:00
Melinda Weed
3b95202154
Final review and grammatical changes
2018-08-14 10:55:39 +03:00
Melinda Weed
1082724ac3
formatting changes
2018-08-10 12:53:28 +03:00
Melinda Weed
db8f36945b
Fixing colons and formatting
2018-08-10 11:17:32 +03:00
Melinda Weed
739bd6605d
grammatical and stylistic fixes, more passive -> active
2018-08-10 11:01:38 +03:00
Melinda Weed
f2c6d59c23
Further stylistic changes. Passive -> active
2018-08-10 09:56:42 +03:00
paul-szczepanek-arm
6c9bd163b1
factored out whole ediv rand check
2018-08-08 17:02:43 +01:00
paul-szczepanek-arm
cbf1776f14
MACRO the size of rand
2018-08-08 14:26:31 +01:00
paul-szczepanek-arm
c1ce511dff
factor out invalid rand function
2018-08-08 14:19:06 +01:00
paul-szczepanek-arm
021c452823
replaced lesc field usage with ediv&rand check
2018-08-06 10:34:42 +01:00
paul-szczepanek-arm
fbb926d77e
call the correct ltk function when SC is used
2018-08-03 15:28:41 +01:00
Melinda Weed
bae4c89d0f
Remove shall, whole lotta other changes. Not done yet.
2018-07-09 15:06:11 +03:00
Vincent Coubard
7a8cc0243f
Cordio Documentation: Explain how to tests and what tools are available.
2018-07-04 12:46:41 +01:00
Cruz Monrreal
2e233a96d3
Merge pull request #7210 from pan-/fix-nordic-security-cancellation
...
Fix nordic security cancellation
2018-06-25 10:12:23 -05:00
Cruz Monrreal
d160cc6cd0
Merge pull request #7284 from KariHaapalehto/wise1530_usi22_support
...
Add binary drivers for MTB_USI_WM_BN_BM_22 and MTB_ADV_WISE_1530
2018-06-22 10:16:16 -05:00
Vincent Coubard
4b8fb0be78
Nordic BLE: Fix return value verification
2018-06-22 09:36:06 +01:00
Vincent Coubard
b68e18cdb4
Nordi BLE: Fix formatting
2018-06-22 09:35:34 +01:00
Cruz Monrreal
34513f2a92
Merge pull request #7221 from pan-/cordio-port-test
...
Cordio: Add tests that validates a cordio port.
2018-06-21 23:30:39 -05:00
Kari Haapalehto
699811be72
Add binary drivers for MTB_USI_WM_BN_BM_22 and MTB_ADV_WISE_1530
2018-06-21 12:15:53 +03:00
Vincent Coubard
d2ecdb8900
Cordio BLE: Rewrite reset test strategy
...
The existing test was expecting that the acknowledgement of the reset command would be the first and only event receive. This assumption is false.
As a consequence, the new code parse all incoming packets and raise a flag in the following circumstances:
* a reset packet has been successfully received.
* RX stream is not synchronized
* The status of the reset command is an error.
Another test has been added that send a serie of reset commands.
2018-06-20 15:24:37 +01:00
Vincent Coubard
4f8a006f3b
Cordio BLE: Document in test what fields are expected to be set after init.
2018-06-20 12:01:28 +01:00
Vincent Coubard
5b7f7aa77b
Cordio BLE: Fix test failure when controller initialization failed.
2018-06-20 12:00:52 +01:00
Vincent Coubard
14e229e00a
Cordio: Add tests that validates a cordio port.
...
The first test focuse on the transport by testing that the reset sequence is
correctly sent to the controller and properly received.
The second test validates that the reset sequence fullfill the right state
of the stack and ensure that bluetooth initialization succeed.
2018-06-14 18:24:23 +01:00
Vincent Coubard
92fa40b1c7
Nordic BLE: Accept connection parameter update
...
A peer device that sends a connection parameter update may get block if it doesn't receive a response.
This patch accept the peer request unconditionnally. At some point this event will be managed by the application.
2018-06-13 15:54:51 +01:00
Vincent Coubard
5237c3ec40
Nordic BLE:
...
Cancel pairing if the device fail to allocate the resources necessary for the pairing operation.
2018-06-13 15:11:13 +01:00
Vincent Coubard
f0c3f14887
Nordic BLE: Fix pairing cancellation.
...
Depending on the role and the current state of the local device; pairing cancelation should be made with a call to a specific function. Normally the Nordic stack would reject invalid calls if the device is not in the correct state; therefore it was assumed that it was possible to detect the state from sd errors. Unfortunatelly this is not true with the latest softdevices as some calls succeed even if the device is not in the right state.
To solve that issue cancelation looks at the current state of the device first to select the right function that will trigger the pairing cancellation.
Note: the call to sd_ble_gap_authenticate was missing in the previous algorithm
2018-06-13 15:10:10 +01:00
Vincent Coubard
301e527af7
Nordic BLE: Store locally role for a given connection.
2018-06-13 15:03:43 +01:00
Vincent Coubard
5c7b8c8ea4
Nordic BLE: Add default parameter to get the local instance of nrF5xn
2018-06-13 15:02:45 +01:00
Vincent Coubard
8e7936d327
Nordic BLE: Improve return of nRF5xn::getGap.
...
Return the derived type instead of the abstract one. This is legal as C++ supports covariant returns.
2018-06-13 15:02:07 +01:00
Cruz Monrreal
02e90ef469
Merge pull request #7163 from pan-/cordio-driver-hook
...
Cordio driver hook
2018-06-11 08:49:49 -05:00
Cruz Monrreal
bacf6a9dec
Merge pull request #6860 from andrewleech/nordic_ble_config
...
Nordic BLE: Allow configuration of softdevice parameters
2018-06-07 10:10:23 -05:00
Vincent Coubard
06d9aac14c
Cordio BLE: Allow replacement of hci RX handler.
2018-06-07 12:30:34 +01:00
Vincent Coubard
569fd9ed30
Cordio BLE: Add hook to HCI driver and transport.
...
A friend class living in the namespace ble::vendor::cordio and named CordioHCITransportDriver can be added in applications requiring access to internal data of the HCI driver and HCI transport driver.
This is meant to be internal and not easily exploitable by application code.
2018-06-07 12:29:57 +01:00
Cruz Monrreal
20a4412082
Merge pull request #7089 from paul-szczepanek-arm/fix-master
...
BLE fixes (SM whitelist creation, Nordic scatter file fix, missing TLS initialisation)
2018-06-04 10:44:54 -05:00
Anna Bridge
2d0e5f04b1
Merge pull request #6022 from andrewleech/nrf_asserts_error
...
nrf5x: Enable asserts -> mbed_error
2018-06-04 12:24:58 +01:00
Vincent Coubard
4d0126898c
BLE Nordic: Initialize and teardown tls platform context
2018-06-01 17:12:49 +01:00
paul-szczepanek-arm
e534f3b997
fix erroneous assert
2018-06-01 15:57:51 +01:00
Andrew Leech
bf313aa1db
Move mbed_lib.json from targets folder to feature_ble folder
...
The functionality added all affects BLE features in use so this location is a better fit.
2018-06-01 13:37:16 +10:00
Andrew Leech
ff5ca11253
Allow configuration (via defines) of some of the key settings for the NRF51 softdevice.
...
* CENTRAL_LINK_COUNT
* PERIPHERAL_LINK_COUNT
* gatts_enable_params.attr_tab_size
* gatts_enable_params.service_changed
* common_enable_params.vs_uuid_count
These settings control the range of functionality enabled in the softdevice as well as ram consumption.
In particular reducing these values is critical to enable usage of 16K nrf51 devices.
2018-06-01 13:23:01 +10:00
Donatien Garnier
5da5ef45c0
Cordio H4: Added some comments explaining the use of RawSerial as opposed to using Serial
2018-05-31 11:11:28 -05:00
Donatien Garnier
0cb86ded76
BLE: Replace Serial with RawSerial in Cordio H4 Transport Driver
2018-05-31 10:28:45 -05:00
Cruz Monrreal
791620c428
Merge pull request #6932 from paul-szczepanek-arm/security-manager-dev
...
BLE privacy, signing, persistent security database
2018-05-24 10:07:06 -05:00
Vincent Coubard
db4d14c89d
BLE NRF52: Fix advertising filtering when no bonds are present.
2018-05-23 17:27:18 +01:00
Vincent Coubard
ef208912a6
BLE NRF52: Report correct own address type for connection
...
The function that gets the address doesn't work when privacy is enabled; report own address as private resolvable.
2018-05-23 17:27:18 +01:00
Vincent Coubard
30dac7cd8c
BLE NRF52: Fix identity address flag in connection request.
2018-05-23 17:27:07 +01:00
Vincent Coubard
cfe325cf0e
BLE NRF51: Do not filter advertising packet in peripheral if the device as no bond.
2018-05-22 17:40:18 +01:00
Vincent Coubard
ba61c09ffc
BLE NRF51: Resolve private address on connection in peripheral role
...
Soft device inconsistency: The address is not resolved automatically if the device is a peripheral.
2018-05-22 17:39:03 +01:00
Vincent Coubard
755cf5fa5f
BLE NRF51: Defer connection to a common function.
...
The soft device is not consistent as it is required to force the connection to a resolved resolvable address so it should be known if the target is an identity address.
2018-05-22 17:37:57 +01:00
Vincent Coubard
d427fcfb59
Nordic BLE: Remove dependency to mbedtls for CryptoToolbox::ah.
2018-05-22 17:33:49 +01:00
Andrew Leech
67140a2706
Redirect NRF asserts to mbed error() in TARGET_NRF5x and SDK 14.2
...
Add related details to TARGET_NRF5x Readme's
2018-05-22 11:36:31 +10:00
Andrew Leech
cfd248ee05
Enable ASSERTS's in nrf sdk to catch coding errors.
...
These will now flow through to mbed standard error handling.
2018-05-22 11:36:30 +10:00
Vincent Coubard
cc286fe84c
BLE: Cordio pal: Handle enhanced connection events.
2018-05-21 13:22:53 +01:00
Vincent Coubard
57ffa14b4b
Nordic BLE: Backport privacy backward compatibility to NRF51
2018-05-21 13:21:46 +01:00
Vincent Coubard
14a1095c31
Nordic BLE: Disable secure connection support on NRF51.
2018-05-21 10:34:09 +01:00
Vincent Coubard
4c1a309117
Nordic BLE: Set own resolvable address to NULL.
...
This address is not accessible to the application.
2018-05-21 10:22:01 +01:00
Vincent Coubard
d962fc0174
BLE: factor code in GAP.
2018-05-21 10:20:43 +01:00
Vincent Coubard
28766bd873
BLE: Do not pass peer resolvable address in connection event handler
2018-05-21 10:17:44 +01:00
Vincent Coubard
c3bcd10cfd
BLE NRF52: Implement features related to peer_address_t
...
The overload of Gap::connect that accept peer_address_t has been added and gap connection and advertising report process have been updated to exploit peer_address_t in a backward compatible fashion.
2018-05-18 10:09:07 +01:00
paul-szczepanek-arm
57a02d6329
fixed signature
2018-05-16 16:54:47 +01:00
Vincent Coubard
37c036ca6b
Nordic: Port privacy to softdevice v4.
...
Many things have changed; the identity list isn't shared anymore with the whitelist and resolution is handled by the stack itself.
2018-05-16 16:16:06 +01:00
Vincent Coubard
6c44a78166
Merge branch 'master' of https://github.com/ARMmbed/mbed-os into security-manager-dev
2018-05-16 15:55:15 +01:00
Donatien Garnier
3f7a7a4213
Merge
2018-05-16 12:44:36 +01:00
Donatien Garnier
1fdb57e82c
Removed set_privacy() API and added is_privacy_supported() check to PAL + Generic GAP
2018-05-16 12:02:21 +01:00
Vincent Coubard
afcbdfc7dc
Merge branch 'security-manager-dev' of https://github.com/paul-szczepanek-arm/mbed-os into filedb
2018-05-16 08:43:52 +01:00
Vincent Coubard
2cb6e659a9
Nordic BLE: Backport security fixes from nRF5 to nRF5x
2018-05-15 15:11:33 +01:00
Vincent Coubard
ca5a9f359a
Nordic BLE: remove unecessary nordic ble libraries.
2018-05-15 14:51:19 +01:00
Vincent Coubard
a22b4e5d5e
Nordic BLE: Remove nordic gap init.
...
This initialization is already done in GattServer.
2018-05-15 14:51:18 +01:00
Vincent Coubard
dd6a5350e2
Nordic BLE: Remove peer manager handling.
2018-05-15 14:51:18 +01:00
Vincent Coubard
6f24078507
Nordic BLE: route event handling correctly.
2018-05-15 14:51:18 +01:00
Vincent Coubard
167a660ac1
Nordic BLE: use pal security manager.
2018-05-15 14:51:18 +01:00
Vincent Coubard
31f8cd18f7
Nordic BLE: Backport Gap from nRF5
2018-05-15 14:51:18 +01:00
Vincent Coubard
39396955a2
Nordic BLE: simplify whitelist management.
2018-05-15 14:51:17 +01:00
Vincent Coubard
6810c02606
Nordic BLE: Fix processing of events.
...
If new events are signaled during processing then they should be processed when processEvent is called again. The goal is to let other processing happen and not process sollely ble events.
2018-05-15 14:51:17 +01:00
Vincent Coubard
8fbecf2e0d
Nordic BLE: Fix incorrect assignement
2018-05-15 14:51:17 +01:00
Vincent Coubard
68b3288ba8
Nordic BLE: Fix signature of nRF5xGattServer::hwCallback
2018-05-15 14:51:17 +01:00
Vincent Coubard
4a7c9a9a55
Nordic BLE: expose publically btle_handler
2018-05-15 14:51:17 +01:00
Vincent Coubard
2af5508c4c
Nordic BLE: Do not conditionnaly assign sm key pointers.
...
This change has been forced by a change in latest softdevice that requires all key pointers to not be NULL unlike what is indicated in the documentation.
2018-05-15 14:51:17 +01:00
Vincent Coubard
dc54da0a2d
Nordic BLE: Force signing and link requirements to false.
2018-05-15 14:51:16 +01:00
Vincent Coubard
02e3c13d25
Nordic BLE: Protect event signaled flag.
2018-05-15 14:51:16 +01:00
Vincent Coubard
f7f1272647
Nordic: Backport security manager pal for NRF5X targets.
2018-05-15 14:51:15 +01:00
Vincent Coubard
4acb3937e4
Cordio BLE: Fix potential memory leak in GattServer.
2018-05-15 14:32:29 +01:00
Donatien Garnier
472d3de849
Give GenericGap access to the Security Manager's PAL
2018-05-14 13:36:02 +01:00
Donatien Garnier
a3d9d6cebd
Business logic for handling non-resolvable private addresses
2018-05-14 13:26:39 +01:00
Bartek Szatkowski
38df9306d7
Update wsf_types.h to support updated CMSIS
2018-05-14 12:18:21 +01:00
Donatien Garnier
2509a88d58
Revert set_privacy() in Cordio GAP PAL impl
2018-05-13 20:37:14 +01:00
Donatien Garnier
1a623e6670
Added method to enable/disable privacy in GAP Pal with Cordio impl
2018-05-13 19:15:20 +01:00
Donatien Garnier
5734fca195
Added set_address_resolution method in GAP Pal with Cordio implementation
2018-05-13 18:53:23 +01:00
Donatien Garnier
33c46f5658
Remove LL resolving 'shorcut' when adding a device to resolving list - this should be controlled by the GAP layer
2018-05-13 17:49:00 +01:00
Cruz Monrreal
2104d8ab5b
Merge pull request #6711 from marcuschangarm/cleanup-nrf5x
...
Cleanup TARGET_NRF5 and TARGET_NRF5x
2018-05-11 19:15:05 -05:00
Donatien Garnier
40b6813dcf
Fix wrong use of DmLlPrivEnabled()
2018-05-11 18:52:27 +01:00
Donatien Garnier
71bd30daf3
More inline doc
2018-05-11 18:37:02 +01:00
Donatien Garnier
bcfbeb7f1a
Some doc adjustments
2018-05-11 18:23:37 +01:00
Donatien Garnier
3ca3c2db2c
Initial implementation of the Security Manager's Privacy feature for Cordio
2018-05-11 18:20:39 +01:00
Vincent Coubard
40a403e99b
Merge branch 'security-manager-dev' of https://github.com/paul-szczepanek-arm/mbed-os into fix-encryption-rejection
2018-05-10 12:05:36 +01:00
paul-szczepanek-arm
473482d204
move securitydb into generic
2018-05-10 11:08:31 +01:00
Cruz Monrreal
e33fb60c3d
Merge pull request #6849 from scartmell-arm/bug-critical-section-nordic
...
Add missing semicolon to NRF51 critical_section implementation
2018-05-09 11:33:10 -05:00
paul-szczepanek-arm
b95da8d8c4
remove crypto when missing ECDH
2018-05-09 12:27:43 +01:00
Paul Szczepanek
fee986750d
fix case
2018-05-09 12:19:35 +01:00
Paul Szczepanek
b4d7bb6020
fix case
2018-05-09 12:19:27 +01:00
Paul Szczepanek
37b11d8ac5
fix case
2018-05-09 12:18:55 +01:00
Paul Szczepanek
367fe345ba
fix case
2018-05-09 12:18:42 +01:00
Paul Szczepanek
79b3bc4fce
fix case
2018-05-09 12:18:26 +01:00
paul-szczepanek-arm
b98ffa48da
fix uppercase X in nrf5x
2018-05-09 12:16:26 +01:00
paul-szczepanek-arm
6a26a8a6c8
Merge branch 'security-manager-dev' of https://github.com/paul-szczepanek-arm/mbed-os into security-manager-dev
2018-05-09 11:37:41 +01:00
paul-szczepanek-arm
c02b318436
fixed case in filename
2018-05-09 11:37:33 +01:00
Paul Szczepanek
2b02148ab6
Merge branch 'master' into security-manager-dev
2018-05-09 11:23:28 +01:00
paul-szczepanek-arm
b8fe37a00e
disable ECDH if the platform doesn't support it
...
otherwise you get linker errors
2018-05-09 11:01:10 +01:00
Steven Cartmell
1dfea4168f
Add missing semicolon to NRF51 critical_section implementation
2018-05-09 10:54:26 +01:00
Marcus Chang
1aebdcbee5
Reorganize TARGET_MCU_NRF51822_UNIFIED directories
...
The unified NRF51 target and feature BLE directories have been
reorganized to follow the naming and directory structure of the
NRF52 implementation.
This reorganization does not include TARGET_MCU_NRF51822 and
derived targets.
2018-05-08 10:10:01 -07:00
Paul Szczepanek
9a0a0865a6
Merge branch 'security-manager-dev' into sm-privacy-nordic
2018-05-08 18:01:41 +01:00
Cruz Monrreal
adcd7ec002
Merge pull request #6742 from pan-/ble-update-cordio-porting-guide
...
BLE: Update cordio porting guide
2018-05-08 10:42:19 -05:00
Cruz Monrreal
5b5c8ddb4e
Merge pull request #6743 from pan-/ble-cordio-h4-conditionnal-to-fc
...
BLE: Conditional compilation of H4 driver
2018-05-08 10:41:58 -05:00
Vincent Coubard
565921608e
Cordio: Improve cordio H4 driver.
...
Ommit H4 driver definition if serial flow control is not supported.
2018-05-04 16:36:05 +01:00
Vincent Coubard
34c9206054
BLE: update cordio porting guide.
...
Improve description of the requirements of the H4 driver.
2018-05-04 16:35:57 +01:00
Vincent Coubard
0a59e00b23
Nordic BLE: Update GATT server security management
...
This patch refines permission applied to characteristic and descriptors; instead of a single level of permission , each characteristic receives a permission for the read operation, one for the write operation and another one for the update operation.
As a consequence, updates are not sent if the link does not cover the update permission requirement.
Descriptors also benefits individually from read and write permission.
2018-05-02 19:15:24 +01:00
Vincent Coubard
4f1e574eff
Cordio GattServer: Fix uses of designated initializer.
...
These are not legal in C++ code.
2018-05-02 18:14:54 +01:00
Vincent Coubard
7e043ead96
Nordic BLE: Add stub implementation of remove_peer_csrk in security manager.
2018-05-02 17:52:39 +01:00
Vincent Coubard
f79eeb0173
Cordio: Update stack and pal to support LE security mode 2 level 2.
2018-05-02 14:32:38 +01:00
Vincent Coubard
01e3a004a6
Cordio: register server authorization callback.
2018-05-01 12:29:03 +01:00
Vincent Coubard
549a513dfb
Cordio: Enable client and server signing
2018-05-01 12:28:37 +01:00
Vincent Coubard
d0c4d7a8a3
Cordio: Forward server related events to CordioGattServer
2018-05-01 12:27:49 +01:00
Vincent Coubard
0f64b1c988
CordioGattServer: Global refactoring
...
The registration process has been breaked down into several functions that register the service attribute, characteristic declaration attributes, characteristic value attributes and characteristic descriptors.
Service registration now consider all characteristics permissions: read, write and update. Permissions are also considered when updates needs to be propagated to peers.
Handling of user authorization is also a change introduced by this refactoring.
2018-05-01 12:26:24 +01:00
Vincent Coubard
2da6fa3947
Cordio PAL security manager: Copy locally own CSRK
...
The stack does not copy csrk when DmSecSetLocalCsrk is invoked; it just retains a pointer to it. Therefore a copy is kept inside the pal.
2018-05-01 11:35:16 +01:00
Vincent Coubard
e4813f4fe9
Cordio PAL Security Manager: Copy locally own IRK.
...
The IRK needs to be stored somewhere as it is not copied inside the stack, the stack just keeps a reference to it.
2018-05-01 11:33:36 +01:00
Vincent Coubard
2924bb4c86
Cordio PAL ATT Client: initialize the local sign counter to 0.
2018-05-01 11:29:45 +01:00
Vincent Coubard
2c8b9ab3dc
BLE: Remove example section from cordio porting guide.
...
This section is not applicable in the public version of mbed-os.
2018-04-25 12:15:28 +01:00
Vincent Coubard
6bb80317f8
BLE: Update cordio porting guide
...
Remove the section "Include prebuilt libraries" as it is not applicable
anymore.
2018-04-25 11:48:23 +01:00
Vincent Coubard
6a90232b6b
BLE: Update cordio stack binaries.
...
The new build contains a fix related to permission verification of
characteristic that requires signed write.
2018-04-20 14:57:14 +01:00
Donatien Garnier
f9b371fc0f
Handle required BLE5 softdevice commands
2018-04-19 09:40:41 -07:00
Donatien Garnier
aeab2ecbbf
Fix potential race condition in nRF5xn.cpp
2018-04-19 09:40:41 -07:00
Marcus Chang
97426d63e9
NRF52 BLE: Fix GCC C++11 include error
...
Change <memory> include to <new>
From: d001fb1c66
2018-04-19 09:40:41 -07:00
Donatien Garnier
64baf717e8
Upgrade NRF52 BLE API to version 5
...
* Add NRF_SD_BLE_API_VERSION=5 macro to MCU_NRF52832 target
* Added initial Softdevice v5 API support for nRF5XPalGattClient.cpp
* Added initial Softdevice v5 API support for nRF5xGap.h
* Added initial Softdevice v5 API support for nRF5xGattServer.cpp
* Make sure the ah() hash function used by the security manager is declared with C linkage
* Removed 'ARM porting pending' checks in Nordic SDK
* Added BLE configuration to mbed_lib.json for NRF52x targets
* Migrated APIs and events model for Nordic SDK14.2 & SD API v5 in btle.cpp; adopted polling dispatch model
* Migrated APIs and events model for Nordic SDK14.2 & SD API v5 in nRF5xn.cpp
* Migrated APIs and events model for Nordic SDK14.2 & SD API v5 in nRF5xGap.cpp
* Added const qualifier to hwCallbacks's p_ble_evt parameter in nRF5xGattServer
* Add workaround to enable Radio Notification module from Nordic SDK
* Disabled SWI1 interrupt manually from SWI driver module
* Added missing include directive for "nrf_nvic.h" in ble_radio_notification.c
* Set correct number of custom UUIDs
* Adjust Softdevice RAM requirements for NRF52832/S132
* RAM settings for the application were adjusted as follow:
* Start: 0x20003800
* Size: 0xC800
* Adjust Softdevice RAM requirements for NRF52840/S140
* RAM settings for the application were adjusted as follow:
* Start: 0x20003700 (was 0x20003000)
* Size: 0xC900
* Added 3dBm as a permitted TX Power value for NRF52832
* Fix address type recovery in GAP
* Return min non-connectable adv interval compatible with infrastrcture's expectations
* Moved BLE driver from TARGET_SDK_14_2/FEATURE_BLE to TARGET_SDK_14_2/TARGET_SOFTDEVICE_COMMON/ble
2018-04-19 09:40:41 -07:00
Vincent Coubard
b3c871c960
BLE: Implement privacy on Nordic targets.
2018-04-16 18:18:05 +01:00
Vincent Coubard
2a9d80c5f0
BLE: Change nRF5xSecurityManager::resolve_address signature
...
Return the resolving list entry instead of accepting in parameters.
2018-04-16 18:18:04 +01:00
Vincent Coubard
a18283d897
BLE: change nRF5xSecurityManager::get_resolving_list return
...
It now returns a resolving list entry.
2018-04-16 18:18:04 +01:00
Vincent Coubard
fb680db621
BLE: Implement resolving list in Nordic PAL security manager
2018-04-16 18:18:04 +01:00
Vincent Coubard
365f3d2527
BLE: Add ah in Nordic CryptoToolbox.
2018-04-16 18:18:04 +01:00
paul-szczepanek-arm
9a9167602d
moved init code into non-const for clarity
2018-04-16 15:58:03 +01:00
paul-szczepanek-arm
12899b1e09
fix const induced recursive call
2018-04-16 15:34:15 +01:00
Vincent Coubard
8643fd55ed
BLE: Add stub for signing API in Nordic pal security manager.
2018-04-11 14:22:51 +01:00
Paul Szczepanek
6c900642e5
Merge pull request #28 from paul-szczepanek-arm/signing-counter
...
sign counter added
2018-04-10 17:06:14 +01:00
paul-szczepanek-arm
1ba920a338
missing init
2018-04-10 16:47:29 +01:00
paul-szczepanek-arm
70067105d6
class in header
2018-04-10 16:42:43 +01:00
paul-szczepanek-arm
a2484b63b0
Signing event monitor proxy to bind both server and client
2018-04-10 14:58:29 +01:00
paul-szczepanek-arm
4fff20583d
sign counter kept track by the class using it
2018-04-09 17:49:54 +01:00
paul-szczepanek-arm
55d3423a5e
typedef uint32_t
2018-04-09 13:35:17 +01:00
paul-szczepanek-arm
be912ded5b
normalised the getters const insanity
2018-04-09 12:14:52 +01:00
Vincent Coubard
f53a0e4906
Merge branch 'security-manager-dev' of https://github.com/paul-szczepanek-arm/mbed-os into sc-nordic
2018-04-09 09:09:01 +01:00
paul-szczepanek-arm
57149b69e4
monitor for signing events and set local counter
2018-04-04 19:24:00 +01:00
paul-szczepanek-arm
1d74dfa1f9
redundant funcs removed
2018-04-04 18:02:16 +01:00
Vincent Coubard
dcff810457
BLE: replace byte_array_t::buffer with byte_array_t::data
2018-04-04 17:20:08 +01:00
paul-szczepanek-arm
acfc5b218d
set cordio csrk and counter
2018-04-04 17:16:34 +01:00
paul-szczepanek-arm
2e1c5fc123
completely redundant
2018-04-04 17:16:16 +01:00
paul-szczepanek-arm
539a11ee31
sign counter added
2018-04-04 15:59:10 +01:00
Vincent Coubard
17b3e26429
BLE: remove trace in Nordic PAL security manager
2018-04-04 15:42:47 +01:00
Vincent Coubard
04ab07ff16
BLE: Add documentation to CryptoToolbox.
2018-04-04 15:41:20 +01:00
Vincent Coubard
59a301a256
BLE: CryptoToolbox enhancement
...
- Rename LescCrypto into CryptoToolbox
- Use ArrayView of fixed size as parameters
- Add licence
2018-04-04 15:31:31 +01:00
Vincent Coubard
7bf0eb009a
BLE: use ArrayView to pass and get parameters in Crypto API
...
This change allow vendor pal code to use its own array format.
2018-04-04 11:04:13 +01:00
paul-szczepanek-arm
780d8a4375
let the stack know whether csrk is authenticated
2018-04-03 15:41:43 +01:00
paul-szczepanek-arm
5ae9cc3b53
set peer csrk on pal
2018-04-03 15:41:43 +01:00
Paul Szczepanek
381b99bc61
Merge pull request #25 from paul-szczepanek-arm/oob-gen
...
generate oob at will and without passing in connection handle
2018-04-03 15:30:21 +01:00
Vincent Coubard
3272863f83
BLE Nordic: Support LESC.
2018-03-29 17:24:46 +01:00
Vincent Coubard
f0e18fa007
BLE: Add LESC crypto toolbox for Nordic.
2018-03-29 17:23:54 +01:00
Vincent Coubard
3218e79805
BLE: Fix reference to security manager in Nordic event handler.
2018-03-29 17:23:24 +01:00
Donatien Garnier
8b66c4bd28
[BLE] Fixed inconsistent casing issue for SecurityDb
2018-03-28 10:44:09 +01:00
paul-szczepanek-arm
c542650734
removed unused param from call
2018-03-26 18:07:29 +01:00
Vincent Coubard
87c2045f5e
Merge branch 'security-manager-dev' of https://github.com/paul-szczepanek-arm/mbed-os into sc-nordic
2018-03-26 17:12:37 +01:00
Vincent Coubard
db20ecbbde
Merge branch 'security-manager-dev' into oob-gen
2018-03-26 16:49:55 +01:00
Vincent Coubard
3579653533
Cordio: Implement missing functions for secure connection
2018-03-26 15:48:59 +01:00
paul-szczepanek-arm
98efb9da06
generate oob at will and without passing in connection handle
2018-03-23 18:31:27 +00:00
Vincent Coubard
b859907481
Cordio: remove generate_public_key from the security manager.
2018-03-23 12:06:08 +00:00
paul-szczepanek-arm
66867d4dd3
oob stored in generic and handed over to pal when requested
2018-03-16 14:48:04 +00:00
Vincent Coubard
5e8630dcc6
BLE Nordic: Complete implementation of pal security manager
2018-03-15 11:24:31 +00:00
Vincent Coubard
1638902341
BLE: Whitespace fix
2018-03-15 09:34:41 +00:00
Vincent Coubard
761beafeb3
BLE: Complete nRF5xGap initialization list
2018-03-15 09:34:21 +00:00
Vincent Coubard
288abf5287
BLE: Add nRF5x constructor
2018-03-15 09:33:25 +00:00
Vincent Coubard
c3fd90430a
BLE: Fix references to ConnectionEventMonitor::EventHandler
2018-03-15 09:32:58 +00:00
Vincent Coubard
eb8ec9c22d
Merge branch 'nordicpalsm' of https://github.com/donatieng/mbed-os into sc-cordio
2018-03-12 10:15:18 +00:00
Vincent Coubard
5a2008211a
Cordio: Implement missing functions for secure connection
2018-03-09 18:06:22 +00:00
Vincent Coubard
38bee37804
Cordio: remove generate_public_key from the security manager.
2018-03-09 18:05:31 +00:00
paul-szczepanek-arm
19bb13c8c5
one last typo
2018-03-09 14:56:37 +00:00
paul-szczepanek-arm
7c82e91981
fixed typo
2018-03-09 12:49:10 +00:00
jiangkun1994
af7c1c919d
fixes a typo in README.md
2018-03-07 03:33:31 +08:00
jiangkun1994
5be35c92da
fixes some typos in README.md
2018-03-07 03:27:45 +08:00
paul-szczepanek-arm
b8ba99a184
handling OOB data generation and verification now pushed down to PAL level
2018-03-05 11:29:13 +00:00
Donatien Garnier
713ab14d22
Removed deprecated Security Manager
2018-03-01 20:06:38 +00:00
Donatien Garnier
7b6b02a746
Nordic PAL - Breaks existing SM
2018-03-01 19:50:13 +00:00
Vincent Coubard
f0405690b7
BLE: Resolve issue with address type in advertising report.
2018-03-01 15:48:21 +00:00
Vincent Coubard
03f79eec39
BLE: Remove Nordic Pal SM draft.
2018-03-01 15:39:51 +00:00
Vincent Coubard
e8f29f7327
BLE - Cordio - PAL SM: refine comments and formating.
2018-03-01 14:59:06 +00:00
Vincent Coubard
36247b32b8
BLE - Cordio PAL SM: Implement Keypress notification
2018-03-01 14:58:01 +00:00
Vincent Coubard
56af3cb1be
CBLE - Cordio PAL SM: Implement slave security request notification
2018-03-01 14:57:05 +00:00
Vincent Coubard
da6ede34a8
BLE - Cordio PAL SM: Select correct on_ltk_request overload.
2018-03-01 14:56:30 +00:00
Vincent Coubard
628ffea6de
BLE - Cordio PAL SM: Forward local keys
2018-03-01 14:55:45 +00:00
Vincent Coubard
18c93990b6
BLE - Cordio PAL Sm: generate random passkey displayed.
2018-03-01 14:55:12 +00:00
Vincent Coubard
ecc7118490
BLE - Cordio PAL SM: Implement send_keypress_notification
2018-03-01 14:54:06 +00:00
Vincent Coubard
9043714443
BLE - Cordio PAL SM: Select correct security level in enable_encryption
2018-03-01 14:53:33 +00:00
Vincent Coubard
79db2af488
BLE - Cordio PAL SM: Choose correct security level in set_ltk
2018-03-01 14:53:00 +00:00
Vincent Coubard
4858388672
BLE - Cordio PAL SM: comment get_authentication_timeout
2018-03-01 14:52:09 +00:00
Vincent Coubard
054b7808b4
BLE - Cordio PAL SM: implement set_authentication_timeout
2018-03-01 14:51:43 +00:00
Vincent Coubard
a057e5c0d2
BLE - Cordio PAL SM: Fix force secure connection.
2018-03-01 14:50:31 +00:00
Vincent Coubard
cd7d9c551c
Cordio pal SM: comment appropriately privacy related functions.
2018-03-01 14:47:46 +00:00
Vincent Coubard
1170b3132d
BLE: Remove useless pal sm API
2018-03-01 14:46:12 +00:00
Vincent Coubard
c00ae29ca7
Cordio: Update stack binaries.
...
New binaries contains a fix in configuration handling.
2018-03-01 11:01:19 +00:00
Vincent Coubard
d050c4e4af
BLE: Fix CordioPalSM set_io_capability
2018-03-01 10:24:13 +00:00
Vincent Coubard
dbf4a8da49
BLE: Implement CordioSM get_secure_connection_support.
2018-03-01 10:22:42 +00:00
paul-szczepanek-arm
c52d324dab
pass in information about the mitm and sc quality of the ltk to the pal
2018-02-28 12:02:54 +00:00
paul-szczepanek-arm
e186985b26
addressing PR review: added documentation, moved code and renamed vars
2018-02-27 17:22:13 +00:00
paul-szczepanek-arm
5de1979f5c
types renamed as per review requests
2018-02-27 10:33:35 +00:00
Vincent Coubard
47e005e14c
BLE: Fix address report in Maxim port.
2018-02-23 15:50:34 +00:00
Vincent Coubard
1698c2d5be
BLE: Add missing encryption implementation in cordio pal SM.
2018-02-22 11:51:02 +00:00
paul-szczepanek-arm
6b0ba64ee2
SM fixes to init and register the event handler correctly
2018-02-21 18:35:44 +00:00
Vincent Coubard
c5be493bb7
BLE: Add address type in AdvertisementCallbackParams_t.
2018-02-21 17:41:14 +00:00
Vincent Coubard
e3d7f2bb05
BLE: Add address type in AdvertisementCallbackParams_t.
2018-02-21 14:14:31 +00:00
paul-szczepanek-arm
c65419239f
fixed compiler errors for pal after its update
2018-02-20 18:01:21 +00:00
paul-szczepanek-arm
396ca2ca20
removed redundant cast
2018-02-19 17:29:45 +00:00
paul-szczepanek-arm
990e21247c
pull in cordio security manager into BLE
2018-02-19 17:26:24 +00:00
paul-szczepanek-arm
dd7bc50e4b
Merge branch 'master' into palsm
2018-02-19 16:39:10 +00:00
paul-szczepanek-arm
ecacbda507
compiler errors fixed after the merge
2018-02-19 16:28:01 +00:00
paul-szczepanek-arm
d9156a28e2
connection monitor
2018-02-19 15:32:07 +00:00
Andrew Leech
d001fb1c66
Avoid importing <memory> as this causes a typedef conflict on `error_t` whien compiling with gcc "-std=gnu++11" or above
2018-02-16 12:10:44 +11:00
paul-szczepanek-arm
55045010d6
fixed all the compilation errors and recent pal changes
2018-02-13 11:01:30 +00:00
Vincent Coubard
7b169997c8
BLE Cordio: partial implementation of set ltk.
2018-01-19 18:49:39 +00:00
Vincent Coubard
a849f7f433
BLE Cordio: Enable handling of security.
2018-01-19 18:42:59 +00:00
Vincent Coubard
818ec8c8ec
BLE SM: Align CordioPalSecurityManager with PalSecurityManager and fill the blanks
2018-01-19 14:36:55 +00:00
paul-szczepanek-arm
dee47771fd
updated implementations with new classes for auth and distribution masks
2018-01-18 15:42:50 +00:00
Vincent Coubard
743e57ffaa
Nordic BLE: Draft SM event handler.
2018-01-17 18:37:48 +00:00
Vincent Coubard
7e37cc739f
Nordic BLE: SM pal function draft (legacy pairing)
2018-01-17 18:37:48 +00:00
Vincent Coubard
5277f5a0fd
BLE: Fix signature of get_secure_connections_support in implementations.
2018-01-17 18:37:48 +00:00
Vincent Coubard
527a31663c
BLE - Nordic: Add Skeleton for the security manager
2018-01-17 18:37:48 +00:00
Vincent Coubard
ffb59eecb8
CORDIO BLE: Add PAL SM event handling (draft).
2018-01-17 18:37:47 +00:00
Cruz Monrreal
671c2d7e90
Merge pull request #5346 from scartmell-arm/feature-hal-spec-critical-section
...
Add Critical Section HAL API specification
2018-01-16 12:49:38 -06:00
Vincent Coubard
9bd0fa5708
BLE Cordio: Fix call to SafeEnum<>::value()
2018-01-16 18:11:38 +00:00
Vincent Coubard
e4b5681563
Cordio: Add SecurityManager singleton
2018-01-16 18:09:35 +00:00
Vincent Coubard
c3c24d8641
Cordio: Implementation of base functions necessary for legacy pairing.
2018-01-16 18:04:40 +00:00
Vincent Coubard
0cd4f93041
Add skeleton of the PalSecurityManager for the Cordio Stack.
2018-01-16 17:19:26 +00:00
Daniel Schuler
271b09cda6
Add presentation format descriptor support for NRF52
2018-01-13 15:49:40 -08:00
Cruz Monrreal
dc87f0b1e6
Merge pull request #5313 from pan-/ble-cordio-pal-gap
...
Cordio: Pal Gap implementation
2018-01-11 10:35:42 -06:00