pub struct Nonce(/* private fields */);Expand description
128-bit random nonce value ([Vol 3] Part H, Section 2.3.5.6).
Implementations§
Source§impl Nonce
impl Nonce
Sourcepub fn new() -> Self
pub fn new() -> Self
Generates a new non-zero random nonce value from the OS CSPRNG.
§Panics
Panics if the OS CSPRNG is broken.
Sourcepub fn f4(&self, u: &PublicKeyX, v: &PublicKeyX, z: u8) -> Confirm
pub fn f4(&self, u: &PublicKeyX, v: &PublicKeyX, z: u8) -> Confirm
Generates LE Secure Connections confirm value ([Vol 3] Part H, Section 2.2.6).
Sourcepub fn g2(&self, pkax: &PublicKeyX, pkbx: &PublicKeyX, nb: &Self) -> NumCompare
pub fn g2(&self, pkax: &PublicKeyX, pkbx: &PublicKeyX, nb: &Self) -> NumCompare
Generates LE Secure Connections numeric comparison value ([Vol 3] Part H, Section 2.2.9).
Trait Implementations§
impl Copy for Nonce
impl Eq for Nonce
impl StructuralPartialEq for Nonce
Auto Trait Implementations§
impl Freeze for Nonce
impl RefUnwindSafe for Nonce
impl Send for Nonce
impl Sync for Nonce
impl Unpin for Nonce
impl UnwindSafe for Nonce
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