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

can we enable the AES encryption by API????

I am using nrf51822 custom board(no input output capability) i want to make communication between BLE and PC and i want encrypted link connection whether i have to initialize by API or it will automatically done in soft device when i am setting any of the security mode like BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM.If it is possible by API can we can set our own STK(Short Term Key) and can u mention which function i have to use.

  • Hi, encryption will be handled automatically by the device manager module when a pairing request is issued from the central (implemted in all SDK BLE examples).

    Just works will be the default association model used when there are no IO capabilities or static passkey available. Again, this will be handled automatically be the device manager.

    BLE_GAP_CONN_SEC_MODE_SET_ENC_WITH_MITM() can be used to set the security requirement for each characteristic, hence force the central to pair in order to gain access.

    STK generation is randomly generated by the stack.

Related