Compare and inspect struct pbl_bt_sm_pairing_info.
More...
Compare and inspect struct pbl_bt_sm_pairing_info.
◆ sm_is_pairing_info_empty()
Check whether a pairing holds no keys.
- Parameters
-
- Returns
- true if none of the encryption, identity or signing information is valid.
◆ sm_is_pairing_info_equal_identity()
Check whether two pairings have the same remote identity.
- Parameters
-
| a | First pairing. |
| b | Second pairing. |
- Returns
- true if both have valid identity information with equal identity address and IRK.
◆ sm_is_pairing_info_irk_not_used()
| bool sm_is_pairing_info_irk_not_used |
( |
const struct pbl_bt_sm_key * |
irk_key | ) |
|
Check whether an IRK is unused.
Per the Bluetooth Core Specification v4.2, Vol 3, Part C, 10.7, an IRK that does not apply is all zeros.
- Parameters
-
- Returns
- true if
irk_key is all zeros.