Bluetooth: SMP: Minor coding style fixes
Use appropriate scope for 'random' and remove unnecessary empty lines. Change-Id: Idb8d527fa0a88ca738e91887b56a123a5a8831ce Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
0b76866bab
commit
3258ecad80
1 changed files with 2 additions and 3 deletions
|
@ -3597,20 +3597,19 @@ static bool le_sc_supported(void)
|
|||
#else
|
||||
static bool le_sc_supported(void)
|
||||
{
|
||||
uint32_t random[8];
|
||||
EccPoint pkey;
|
||||
|
||||
do {
|
||||
uint32_t random[8];
|
||||
|
||||
if (bt_rand((uint8_t *)random, sizeof(random))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (ecc_make_key(&pkey, sc_private_key, random) == TC_FAIL) {
|
||||
BT_ERR("Failed to create ECC public/private pair");
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/* make sure generated key isn't debug key */
|
||||
} while (memcmp(sc_private_key, sc_debug_private_key, 32) == 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue