mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-01 04:20:33 +00:00
don't use sm_aes128_plaintext for ltk calculation
This commit is contained in:
parent
9c8b3a52e3
commit
a674d4c1e6
1
ble/sm.c
1
ble/sm.c
@ -1373,7 +1373,6 @@ static void sm_handle_encryption_result(uint8_t * data){
|
|||||||
print_hex16("ediv", setup->sm_local_ediv);
|
print_hex16("ediv", setup->sm_local_ediv);
|
||||||
// PH3B4 - calculate LTK - enc
|
// PH3B4 - calculate LTK - enc
|
||||||
// LTK = d1(ER, DIV, 0))
|
// LTK = d1(ER, DIV, 0))
|
||||||
sm_d1_d_prime(setup->sm_local_div, 0, setup->sm_aes128_plaintext);
|
|
||||||
connection->sm_state_responding = SM_STATE_PH4_LTK_GET_ENC;
|
connection->sm_state_responding = SM_STATE_PH4_LTK_GET_ENC;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user