Struct spake2::SPAKE2 [−][src]
pub struct SPAKE2<G: Group> { /* fields omitted */ }
Methods
impl<G: Group> SPAKE2<G>
[src]
impl<G: Group> SPAKE2<G>
pub fn start_a(
password: &Password,
id_a: &Identity,
id_b: &Identity
) -> (SPAKE2<G>, Vec<u8>)
[src]
pub fn start_a(
password: &Password,
id_a: &Identity,
id_b: &Identity
) -> (SPAKE2<G>, Vec<u8>)
pub fn start_b(
password: &Password,
id_a: &Identity,
id_b: &Identity
) -> (SPAKE2<G>, Vec<u8>)
[src]
pub fn start_b(
password: &Password,
id_a: &Identity,
id_b: &Identity
) -> (SPAKE2<G>, Vec<u8>)
pub fn start_symmetric(
password: &Password,
id_s: &Identity
) -> (SPAKE2<G>, Vec<u8>)
[src]
pub fn start_symmetric(
password: &Password,
id_s: &Identity
) -> (SPAKE2<G>, Vec<u8>)
pub fn finish(self, msg2: &[u8]) -> Result<Vec<u8>, SPAKEErr>
[src]
pub fn finish(self, msg2: &[u8]) -> Result<Vec<u8>, SPAKEErr>
Trait Implementations
impl<G: PartialEq + Group> PartialEq for SPAKE2<G> where
G::Scalar: PartialEq,
[src]
impl<G: PartialEq + Group> PartialEq for SPAKE2<G> where
G::Scalar: PartialEq,
fn eq(&self, other: &SPAKE2<G>) -> bool
[src]
fn eq(&self, other: &SPAKE2<G>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SPAKE2<G>) -> bool
[src]
fn ne(&self, other: &SPAKE2<G>) -> bool
This method tests for !=
.
impl<G: Eq + Group> Eq for SPAKE2<G> where
G::Scalar: Eq,
[src]
impl<G: Eq + Group> Eq for SPAKE2<G> where
G::Scalar: Eq,
impl<G: Group> Debug for SPAKE2<G>
[src]
impl<G: Group> Debug for SPAKE2<G>