Struct rubble::security::PairingRequest[][src]

#[repr(C)]
struct PairingRequest { io: Field<u8, IoCapabilities>, oob: Field<u8, Oob>, auth_req: Field<u8, AuthReq>, max_keysize: u8, initiator_dist: Field<u8, KeyDistribution>, responder_dist: Field<u8, KeyDistribution>, }

Fields

io: Field<u8, IoCapabilities>

The I/O capabilities of the initiator.

oob: Field<u8, Oob>

Whether the initiator has OOB pairing data available.

auth_req: Field<u8, AuthReq>

Initiator authentication requirements.

max_keysize: u8

Maximum supported encryption key size in range 7..=16 Bytes.

For BLE, this is always 16, since it always uses AES-128-CCM (even with the broken LE Legacy Pairing). We consider anything smaller than 16 to be as insecure as a plain text connection.

initiator_dist: Field<u8, KeyDistribution>

Set of keys the initiator (the device sending this request) wants to distribute to the responder (the device receiving this request).

responder_dist: Field<u8, KeyDistribution>

Set of keys the initiator requests the responder to generate and distribute.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.