pub struct CheckCode { /* private fields */ }
Expand description
A check code that can be used to confirm that two EstablishedEcies
objects share the same secret. This is supposed to be shared out-of-band to
protect against active MITM attacks.
Since the initiator device can always tell whether a MITM attack is in progress after channel establishment, this code technically carries only a single bit of information, representing whether the initiator has determined that the channel is “secure” or “not secure”.
However, given this will need to be interactively confirmed by the user, there is risk that the user would confirm the dialogue without paying attention to its content. By expanding this single bit into a deterministic two-digit check code, the user is forced to pay more attention by having to enter it instead of just clicking through a dialogue.
Implementations§
Trait Implementations§
source§impl PartialEq for CheckCode
impl PartialEq for CheckCode
impl Eq for CheckCode
impl StructuralPartialEq for CheckCode
Auto Trait Implementations§
impl Freeze for CheckCode
impl RefUnwindSafe for CheckCode
impl Send for CheckCode
impl Sync for CheckCode
impl Unpin for CheckCode
impl UnwindSafe for CheckCode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)