You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by "IshaESP (via GitHub)" <gi...@apache.org> on 2023/06/14 09:39:10 UTC
[GitHub] [mynewt-nimble] IshaESP commented on pull request #1504: nimble: Added support of encrypted advertising data
IshaESP commented on PR #1504:
URL: https://github.com/apache/mynewt-nimble/pull/1504#issuecomment-1590851307
Hi,
Pipeline has passed.
Regarding different commits, it's very hard to split the code into multiple commits as everything is dependent on each other.
Description:
- Added key material characteristic. This characteristic returns the session key and IV when read. This session key and IV are important for client to decrypt the advertising data.
- Similarly, on server side, encryption of advertising data is done using session key and IV.
- A new structure `enc_adv_data` is being added to store encrypted advertising data.
- If an advertising packet has code 0x31, it means it contains encrypted advertising data. (Macro used : `BLE_GAP_ENC_ADV_DATA`)
- The file `ble_ead.h` has API's for encrypting and decrypting data, ble_ead_encrypt and ble_ead_decrypt respectfully. These API's are called by application layer.
- The file `ble_aes_ccm.h` is a helper file for `ble_ead.h`. It actually calls the mbedtls API's for encrypting/decrypting data.
- New structure `ble_store_value_ead` has beein added in ble_store_config files to store the ead data across reboots.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org