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

Role of Keys kdist_central and kdist_periph in sd_ble_gap_authenticate

My Central is willing to perform a bond (pairing with bond) to a Peripheral.

As an example and according to

Message Sequence Chart > Central Security Procedures > Central Legacy Pairing > Bonding: Just Works,

the central calls sd_ble_authenticate(bond, no_mitm, no_io_caps) and it seems that the rest of the security parameters in p_sec_params (including kdist_central and kdist_periph) are of no importance.

It seems that keys will be stored in p_keyset if the following call to sd_ble_gap_sec_params_reply supplies the pointer p_keyset.

I wonder what the role of these keys kdist_central and kdist_periph is.

Related