case ESP_GAP_BLE_AUTH_CMPL_EVT: {
char str_key[50];
sprintf(str_key, "%x", param->ble_security.auth_cmpl.key)
printf("LTK is %s\n", str_key);
.......
}
Hello. I would like to decrypt the BLE packet that implements Secure LE Connection. Based on the BLE specs,
I need the LTK(Long term Key) to decrypt the packets. After searching on ESP32 BLE API, I found the struct that holds the LTK.
Kindly see the code for the said struct. I placed the code that displays the LTK on ESP_GAP_BLE_AUTH_CMPL_EVT.
But after flashing the code, the LTK displayed was all zeroes. I would like to ask the way to display the LTK. Thank you.