This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Security manager and how to enable the encryption

Hi ,

I am using the code that is built-in and I want to know about the Security manager. I want to see the encryption is enabled or disabled. What is the command? If I want to work with the cryptography function how can I use them in the main function?

Parents Reply
  • The Peer Manager and the SoftDevice handles this for you. The LTK generation is taken care of by the SoftDevice. LTK can be accessed when you receive the BLE_GAP_EVT_AUTH_STATUS event from the SoftDevice.

    Any keys generated and/or distributed as a result of the ongoing security procedure will be stored into the memory referenced by the pointers inside the p_sec_keyset used in sd_ble_gap_sec_params_reply(). The keys will be stored and available to the application upon reception of a BLE_GAP_EVT_AUTH_STATUS event. The Peer Manger( security_dispatcher.c) handles this, and will store the keys for you when you bond with a device.

Children
No Data
Related