pub struct OobData {
pub random: [u8; 16],
pub confirm: [u8; 16],
}Expand description
OOB data for BLE pairing, exchanged via an out-of-band channel.
For LESC: random is the random nonce r, confirm is c = f4(PKx, PKx, r, 0).
For legacy: random is the TK value, confirm is unused (set to zero).
Fields§
§random: [u8; 16]Random nonce (LESC) or TK value (legacy).
confirm: [u8; 16]Confirm value (LESC only, zero for legacy).
Trait Implementations§
impl Copy for OobData
Auto Trait Implementations§
impl Freeze for OobData
impl RefUnwindSafe for OobData
impl Send for OobData
impl Sync for OobData
impl Unpin for OobData
impl UnwindSafe for OobData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more