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

DHKey Reply question

With respect to Softdevice versions SDK_14.2.0_17b948a and SDK_15.0.0_a53641a

I have a question about softdevice function:

sd_ble_gap_lesc_dhkey_reply()

and its parameter:

sd_ble_gap_lesc_dhkey_reply() 

/**@brief GAP LE Secure Connections DHKey. */
typedef struct
{
  uint8_t   key[BLE_GAP_LESC_DHKEY_LEN];        /**< LE Secure Connections Elliptic Curve Diffie-Hellman Key. Stored in little-endian. */
} ble_gap_lesc_dhkey_t;

If I understand this function's usage it maps to the Core specification

BLUETOOTH SPECIFICATION Version 5.0 | Vol 3, Part H page 2348

Security Manager Specification

3.5.7 Pairing DHKey Check

Figure 3.9

This message is used to transmit the 128-bit DHKey Check values (Ea/Eb) generated using f6. This message is used by both initiator and responder. This PDU is only used for LE Secure Connections.

Figure 3.9 shows the PDU containing 16 octets of data, however in the softdevice, 32 bytes are allocated.

If I am mis-understanding the functionality of sd_ble_gap_lesc_dhkey_reply() and its key parameter usage, can you point me to the Core specification section to which it applies?

Thank you!

Parents Reply Children
Related