SWRA772 august 2023 CC2564C
The following function allows the user to generate new P256 private and local keys. This function shall NOT be used in the middle of a pairing process. This is relevant for LE SecureConenctions pairing only. This function returns zero on successful execution and a negative value on all errors.
No parameters are necessary.
“RegenerateP256LocalKeys” Attempts to generate new P256 private and local keys.
GAP_LE_SC_Regenerate_P256_Local_Keys (BluetoothStackID)
int BTPSAPI GAP_LE_SC_Regenerate_P256_Local_Keys (unsigned int BluetoothStackID)
The following function is provided to allow a regeneration of the P-256 private and local puclic keys. This function is relevant only in case of LE SC pairing. This function accepts as parameters the Bluetooth stack ID of the Bluetooth device. This functions shall NOT be used while performing pairing. This function returns zero if successful or a negative error code.