pub struct VerifierCommData<'a> { /* private fields */ }Expand description
A SPAKE2+ verifier, with the salt and the iteration count it was computed with, and the discriminator.
Implementations§
Source§impl<'a> VerifierCommData<'a>
impl<'a> VerifierCommData<'a>
Sourcepub fn new(
discriminator: u16,
verifier: &'a [u8],
salt: &'a [u8],
iterations: u32,
) -> Result<VerifierCommData<'a>, Error>
pub fn new( discriminator: u16, verifier: &'a [u8], salt: &'a [u8], iterations: u32, ) -> Result<VerifierCommData<'a>, Error>
Fails unless the verifier is SPAKE2P_VERIFIER_STR_LEN bytes, the
salt 16 to 32 bytes and the iteration count 1,000 to 100,000.
Sourcepub const fn discriminator(&self) -> u16
pub const fn discriminator(&self) -> u16
The discriminator.
Sourcepub const fn verifier(
&self,
) -> CryptoSensitiveRef<'a, rs_matter_pairing::::Spake2pVerifierStrRef::{constant#0}>
pub const fn verifier( &self, ) -> CryptoSensitiveRef<'a, rs_matter_pairing::::Spake2pVerifierStrRef::{constant#0}>
The verifier: w0, then L.
Sourcepub const fn iterations(&self) -> u32
pub const fn iterations(&self) -> u32
The PBKDF2 iteration count.
Trait Implementations§
Source§impl<'a> Clone for VerifierCommData<'a>
impl<'a> Clone for VerifierCommData<'a>
Source§fn clone(&self) -> VerifierCommData<'a>
fn clone(&self) -> VerifierCommData<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for VerifierCommData<'a>
Source§impl<'a> Debug for VerifierCommData<'a>
impl<'a> Debug for VerifierCommData<'a>
Source§impl<'a> From<VerifierCommData<'a>> for DevCommData<'a>
impl<'a> From<VerifierCommData<'a>> for DevCommData<'a>
Source§fn from(data: VerifierCommData<'a>) -> DevCommData<'a>
fn from(data: VerifierCommData<'a>) -> DevCommData<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Forget for VerifierCommData<'a>
impl<'a> Freeze for VerifierCommData<'a>
impl<'a> Move for VerifierCommData<'a>
impl<'a> RefUnwindSafe for VerifierCommData<'a>
impl<'a> Send for VerifierCommData<'a>
impl<'a> Sync for VerifierCommData<'a>
impl<'a> Unpin for VerifierCommData<'a>
impl<'a> UnsafeUnpin for VerifierCommData<'a>
impl<'a> UnwindSafe for VerifierCommData<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
Source§fn into_fallible<E>(self) -> impl Init<T, E>
fn into_fallible<E>(self) -> impl Init<T, E>
Convert the infallible initializer to a fallible one.