SWRA772 august 2023 CC2564C
To perform LE SC pairing in OOB method, generate local random and confirmation values before the pairing process starts. The following function allows the user to generate OOB local parameters. This function shall NOT be used in the middle of a pairing process. This is relevant for LE SC pairing only. This function returns zero on successful execution and a negative value on all errors.
No parameters are necessary.
“SCGenerateOOBLocalParams” Attempts to generate local random and confirmation values before the pairing process starts.
GAP_LE_SC_OOB_Generate_Parameters(BluetoothStackID, &OOBLocalRandom, &OOBLocalConfirmation)
int BTPSAPI GAP_LE_SC_OOB_Generate_Parameters(unsigned int BluetoothStackID, SM_Random_Value_t *OOB_Local_Rand_Result, SM_Confirm_Value_t*OOB_Local_Confirm_Result)
The following function is provided to allow the use of LE Secure Connections (SC) pairing in Out Of Band (OOB) association method. The upper layer uses this function to generate the the local OOB random value, and OOB confirmation value (ra/rb and Ca/Cb) as defined in the Bluetooth specification. This function accepts as parameters the Bluetooth stack ID of the Bluetooth device, and pointers to buffers that recieve the generated local OOB random, and OOB confirmation values. This function returns zero if successful or a negative error code.